I've been reading a while before ask here but really need yours help on this topic. I found this amazing posts ([1],[2]) which is basically what I'm need but with some minor changes. This is my flow:
- The user is buying products in my page
- The user end and start the process to pay and shipping
- When the user arrive to the latest page before payment I have all the needed data to send via POST and to do online Payment
- In the other side exists a JSP which receive two parameters: total and invoiceNumber
I know I need to use cURL in order to send data via POST but I need to redirect also to the bank online payment page. How can I do this?
PS: Sorry for my english is not so good
[1] PHP - Redirect and send data via POST [2] http://davidwalsh.name/execute-http-post-php-curl