I don't understand how to pass values to my relay-response page after the transaction is complete.
I am using DPM. When the client submits the payment form it goes to the authorize.net server. The server successfully returns the result to my 'x- relay_url' and I can parse, display or act on the data. When displayed the address line indicates it is from the authorize.net server as expected.
Instead of showing the result, however, I want to display our own meaningful receipt page, or a decline/error page, as appropriate, after the transaction, using a redirect. I have created a test receipt and I can save the transaction results in a database (apparently necessary) before the redirect, but how do I send a key that refers to the database record , or any other result? In my tests nothing on my response page, and no information from the transaction response, is sent to the new page in the redirect.
I have seen many posts instructing to send a transaction reference in the redirect in order to connect to the database record and thereby enable a meaningful receipt, but no explanation as to how to accomplish this within the redirect has been apparent to me.
We are using Coldfusion and the following code is in my x_relay_url page to process the data and send a page referral:
<!--- Post response to data table here --->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <cfoutput> <html> <head> <script type="text/javascript" charset="utf-8"> window.location='https://www.orangesonline.com/catalog/testReceipt.cfm'; </script>
<noscript> <meta http-equiv="refresh" content="1;url=https://www.orangesonline.com/catalog/testReceipt.cfm"> </noscript> </head> <body> </body> </html> </cfoutput>
I would like to either:
Can anyone help me to understand how to accomplish this? Is there a best practices method for transferring data to the custom receipt page?
Thanks,
rdg
Solved! Go to Solution.
04-23-2015 11:25 AM
Hi rdg,
This quickstart guide should help, it shows communicating a successful & unsuccessful result to your own receipt page. Please reply again to this thread if I am not understanding your issue correctly and you need more assistance. http://developer.authorize.net/integration/fifteenminutes/java/#directpost
regards,
Brian
04-28-2015 04:45 PM
Hi rdg,
This quickstart guide should help, it shows communicating a successful & unsuccessful result to your own receipt page. Please reply again to this thread if I am not understanding your issue correctly and you need more assistance. http://developer.authorize.net/integration/fifteenminutes/java/#directpost
regards,
Brian
04-28-2015 04:45 PM
Duh. Thank you. I don't use jsp but can append parameters to the URL using Coldfusion. I thought I had read not to pass paramaters after the "?" to the authorize.net server but that must have been in regard to a different action
-rdg.
04-29-2015 11:58 AM