CURL Post Along with redirect
Posted: Thu Aug 05, 2004 9:41 am
Hello people,
I'm trying to connect with a payment processing interface.
The process is as follows.....
The user enters their personal information, accepts terms and conditions etc and then clicks on proceed to payment.
What i need to do is send a form to the payment processor that contains all the order information and also a hash of the order which they check for security.
So after the user presses the form submit i need to take the form variables and add my own before posting on to the payment interface.
Now I can do this with CURL and send the POST variables no problem, the only hitch is that the user stays on my page and doesn't get forwarded to the Payment processors site.
How do i go about doing this as if the user had submitted the form directly and they get directed to the other site without knowing what variables i have added?
Thanks for any input
Ross
I'm trying to connect with a payment processing interface.
The process is as follows.....
The user enters their personal information, accepts terms and conditions etc and then clicks on proceed to payment.
What i need to do is send a form to the payment processor that contains all the order information and also a hash of the order which they check for security.
So after the user presses the form submit i need to take the form variables and add my own before posting on to the payment interface.
Now I can do this with CURL and send the POST variables no problem, the only hitch is that the user stays on my page and doesn't get forwarded to the Payment processors site.
How do i go about doing this as if the user had submitted the form directly and they get directed to the other site without knowing what variables i have added?
Thanks for any input
Ross