I am integrating my website with payment gateway...I want to take some parameters from the user and add some parameters from my side , and then send data to the payment gateway.
The two steps you need are: First while making ajax call add parameters from user in client side. Second add your required parameters on server-side. After that you can forward the details to your gateway.
def addYourParameters()
{
// did required operation here
forward controller:'gateway', action:'yourAction', params: [required Map]
}
You can't redirect POST request, all redirections are new GET request, it's from specification.
Btw, you can add this parameters on client side, before sending to payment gateway. By using ajax for example. Or by making an extra page, with a form, that will be autosubmitted to payment gateway