cancel
Showing results for 
Search instead for 
Did you mean: 

Questions about DPM relay page code

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:

  1. If result_code = 1, send the invoice number to the referral page in order to retreive the transacton and order information;
  2. If result_code > 1 send the result_code, result_reason_code and result_reason_text to the referral page in order to explain the problem or error to the client.

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

rdg
Member
1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

brianmc
Administrator Administrator
Administrator
2 REPLIES 2

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

brianmc
Administrator Administrator
Administrator

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.

Type a product name