Losing POSTed data after return from payment gateway
Posted: Sun Aug 08, 2004 11:05 pm
I have a credit card billing form which requires data to be posted securely to the payment gateway. Upon a successful payment transaction, the gateway forwards the user to a billing confirmation page.
That's fine, however, the billing confirmation page requires some data from the credit card billing form to create a transaction record.
i.e.
page 1: payment gateway information, website transaction number
page 2: -> off-site payment gateway ->
page 3: I need the website transaction number
What can I do to send the website transaction number from page 1 to page 3 to tell my script that the transaction has been successful?
I assume I can save the sessionhash (stored in a cookie) and the transaction number in a temporary table. When the user returns from the payment gateway after a successful transaction, I can look up the sessionhash table and retrieve the transaction number.
That's fine, however, the billing confirmation page requires some data from the credit card billing form to create a transaction record.
i.e.
page 1: payment gateway information, website transaction number
page 2: -> off-site payment gateway ->
page 3: I need the website transaction number
What can I do to send the website transaction number from page 1 to page 3 to tell my script that the transaction has been successful?
I assume I can save the sessionhash (stored in a cookie) and the transaction number in a temporary table. When the user returns from the payment gateway after a successful transaction, I can look up the sessionhash table and retrieve the transaction number.