I have searched a lot but didn't quite find what I am looking for. My scenario is, I am trying to add payment processing in my website. The gateway requires me to send POST data to a specific url (not part of my site). I don't want to use
<input type="hidden" name="secret_key" value="somevalue" />
<input type="hidden" name="auth_key" value="othervalue" />
<input type="hidden" name="charge_total" value="345" />
as this can be manipulated easily. My question is can I grab the data in a php page, process it and send the required data using POST to the payment url without exposing it to the client end. Just to be sure, I would like the user to be actually redirected to that page as well, like it would when you submit the form.
I don't want to use AJAX as well, because that would mean exposing it to the client end.
Thanks.
EDIT: Just to be more elaborate, currently users fill the form, including radio buttons and text fields (along with my hidden fields). The form is submitted to the payment gateway hosted page, where they can confirm their choices and see the Merchant Name (me), which payment gateway determines using secret code. There, the users fill in their Card details and proceed on with payment and are shown the result of the transaction, which is sent back to my server in xml as well. Then they are redirected back to my website success/failure page.
Now, I would like to fetch those user supplied form items, append my custom data, and then submit those values to the gateway hosted page, and continue the rest of the process. Any help is highly appreciated.
Thanks again.