cancel
Showing results for 
Search instead for 
Did you mean: 

Return url after payment

When I have completed payment on the sandbox I always get redirected to

https://test.authorize.net/gateway/transact.dll

 

Shouldn´t I get redirected to the url set in parameter  "x_receipt_link_url" ?

 

 

kaladar
Member
7 REPLIES 7

You have to configure the URL in the control panel as well before you can successfully specify it as a value. Here's the text from the control panel (Settings -> Transaction Format Settings  -> Transaction Response Settings -> Response/Receipt URL's):

 

The Payment Gateway verifies the URL specified in the post string against the URLs in this list. If the URL provided does not match one of the values on this list, the transaction will be rejected. If no URL is provided, the Default URL value will be used.

TJPride
Expert

Hiih thanks for trying to help me :)

 

But I did not get it to work

 

To make clear we are talking about the same thing I am not talking about the response authorize.net sends back to my server after customer has paid (that part is working fine).

 

I´m talking about, if I as a customer of company X am paying for a product and am sent to authorize.net to make the payment, then when I have finshed filling out all details, credit card info etc. and click on Pay now or next or what the label on the button reads. After clicking this button I as a customer of company X am redirected to: https://test.authorize.net/gateway/transact.dll

 

But not the sent to the receipt url set in the parameter "x_receipt_link_url" even though I have gone through the steps you suggested.

 

I have started to wonder if this is how it displays for me as a developer working in the sandbox, and if what I am seeing is actually what is being displayed on my callback url? And perhaps in that case I need not to worry about that the customer not being redirected to the receipt on company X website.

 

:)

Did you actually look at the settings page? There are two things to edit - the relay response URL, and the receipt page URL. Unless I'm missing something obvious, the latter sounds like what you're talking about.

Of course I did, but it made no difference, after payment I still get transferred to this website at authorize.net ... :(

Paste the code you're using to send people to Authorize.net, preferably in a code box (fourth option from the left in Rich Text mode).

Hihi, first of all thanks for your effort! it´s really appreciated.

 

This is an example form I use to post customer to authorize.net.

 

 

<form method="POST" action="https://test.authorize.net/gateway/transact.dll" id="bookingCheckoutForm" name="bookingCheckoutForm">
    <input type="hidden" name="x_address" value="Street 30" >
    <input type="hidden" name="x_amount" value="230" >
    <input type="hidden" name="x_city" value="City" >
    <input type="hidden" name="x_country" value="AZ" >
    <input type="hidden" name="x_customer_ip" value="186.11.211.55" >
    <input type="hidden" name="x_description" value="Sale" >
    <input type="hidden" name="x_delim_data" value="TRUE" >
    <input type="hidden" name="x_email" value="x@x.com" >
    <input type="hidden" name="x_email_customer" value="true" >
    <input type="hidden" name="x_first_name" value="Kaladar" >
    <input type="hidden" name="x_fp_hash" value="c165d395e93a70c3aae340e583589b75" >
    <input type="hidden" name="x_fp_sequence" value="91320809589" >
    <input type="hidden" name="x_fp_timestamp" value="1320809589" >
    <input type="hidden" name="x_invoice_num" value="9" >
    <input type="hidden" name="x_last_name" value="Doe" >
    <input type="hidden" name="x_login" value="242CF9n95j9" >
    <input type="hidden" name="x_method" value="cc" >
    <input type="hidden" name="x_phone" value="558590" >
    <input type="hidden" name="x_po_num" value="9" >
    <input type="hidden" name="x_receipt_link_method" value="LINK" >
    <input type="hidden" name="x_receipt_link_url" value="http://mydomain.net/fresh/receipt/" >
    <input type="hidden" name="x_relay_response" value="TRUE" >
    <input type="hidden" name="x_relay_url" value="http://mydomain.net/fresh/callback" >
    <input type="hidden" name="x_show_form" value="payment_form" >
    <input type="hidden" name="x_version" value="3.1" >
    <input type="hidden" name="x_zip" value="101" >
    <input type="hidden" name="x_delim_char" value="," >
    <input type="submit" name="submit_b" value="Buy now" >
</form>

 

I swapped the actual URL´s for the "x_receipt_link_url" and "x_relay_url" parameters.

But I have verified that both urls work.

 

The relay url works after payment, the order status gets updated based on that.

The problem is that immediatly after booking authorize.net transfers me to this page:

https://test.authorize.net/gateway/transact.dll

 

While it should be transferring the customer to a static webpage f.e.

http://mydomain.net/fresh/receipt/

 

I have set the receipt url correctly in the authorize.net configurations...

 

Does the sandbox behave EXACTLY like the live authorize.net server?

Was just wondering as I have made connections with other gateways and some show the result of the callback (relay_url) after payment while the live server redirects the customer to seller web.

 

It actually is not possible to use both a receipt link and a relay response URL, it is one or the other.

 

Relay Response is used if you would like to generate the receipt page that is displayed to the customer.  When using Relay Response, Authorize.Net posts the transaction results to your page and then "relays" the resulting content of that page to the customer.  It is expected that the customer will still see the Authorize.Net URL at the top of the page when they are viewing this receipt, although any links on the page should work as normal and take them away from Authorize.Net.  The page is designed to work this way in case you do not have an SSL on your own website.  If you tried to display the receipt directly to the customer from a site without SSL, it would result in security warnings popping up in the customer's browser between the time that they submit their card information and the timet hat they see the transaction results.

 

If you use Receipt Link (and set x_relay_response to false),  it means that you would like Authorize.Net to simply display our own receipt page and to place the defined receipt link at the bottom of the page.