cancel
Showing results for 
Search instead for 
Did you mean: 

Specifying Relay Response URL in POST form

Ill try to be clear and concise. I have 2 problems.

 

Background: In test mode, using PHP, and using the Simple Checkout method. 

 

1) Regardless of the hidden variable that specifies which relay response URL I want to use, Authorize.net will always use the default relay response. I want to be able to specify which relay response URL, which I believe to be possible since multiple relay response URLs can be added. Here is the exact posting form I am using:

 

<form name="PrePage" method="post" action="https://scotest.authorize.net/payment/CatalogPayment.aspx">
				<input type = "hidden" name = "LinkId" value ="f87f8005-9489-4fed-961d-c45a69c35cb2" /> 
				<INPUT TYPE="hidden" NAME="x_invoice_num" VALUE="12345">
				<INPUT TYPE="hidden" NAME="x_relay_response" VALUE="TRUE">
				<INPUT TYPE="hidden" NAME="x_relay_url" VALUE="http://www.gardneredge.com/test-transaction.php">
				<INPUT TYPE="hidden" NAME="custom_variable" VALUE="<?php echo urlencode("testing this"); ?>">
				<input type = "image" src="//testcontent.authorize.net/images/buy-now-gold.gif" /> 
			</form>

 

 

2) This second issue may have to do with the first issue, how do I persist these hidden POST variables to the relay response URL? Even though Authorize.net will use the default response URL, a quick PHP var_dump will reveal that none of the variables I have sent from my POST form have been sent to my default relay response URL.

 

 I have a feeling these extra parameters can't be set in the Simple Checkout method. Ultimately, I want the customer to fill out a form, go to Authorize.net to fill out billing information and purchase our service, then return to or be shown a page from our server (relay response URL), where some bookkeeping will be done based on the transaction response from Authorize.net. 

 

Advice in the right direction would be most appreciated! Thanks in advance!

 

webphibian00
Member
1 ACCEPTED SOLUTION

Accepted Solutions

Yep, that's SIM. Easy to implement, but not the same thing as Simple Checkout at all. See this to get an idea of how it works:

https://developer.authorize.net/integration/fifteenminutes/#hosted

View solution in original post

6 REPLIES 6

Simple Checkout isn't really designed for doing anything complicated. You fill out the form in your interface, you get the HTML, you paste it in your site.  If you want something more advanced, you should probably look into SIM.

TJPride
Expert

Is this advanced though? The capabilities seem to be there. One can send an invoice number and the relay response URL, according to their documentation, and I am having issues as to why these parameters aren't used on Authorize.net's side.

What documentation, exactly? The HTML created by the Simple Checkout form in the control panel doesn't mention URL's anywhere, and there doesn't seem to be a PDF anywhere that describes additional options. Supply a link, please.

This is what I was referring to: http://developer.authorize.net/guides/SIM/Receipt_Options/Relay_Response.htm

 

I suspect I am confusing and mixing different APIs. 

 

I appreciate your guidance, TJPride.

Yep, that's SIM. Easy to implement, but not the same thing as Simple Checkout at all. See this to get an idea of how it works:

https://developer.authorize.net/integration/fifteenminutes/#hosted

TJPride, thanks man. I was just confusing APIs all along! Now onto other troubles..