Reply
Highlighted
Member
Posts: 7
Registered: ‎11-23-2011
Accepted Solution

Specifying Relay Response URL in POST form

[ Edited ]

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!

 


Accepted Solutions
Highlighted
Solution
Accepted by topic author webphibian00
‎08-21-2015 01:58 AM
Posts: 1,609
Topics: 15
Kudos: 201
Solutions: 121
Registered: ‎06-23-2011

Re: Specifying Relay Response URL in POST form

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


All Replies
Highlighted
Posts: 1,609
Topics: 15
Kudos: 201
Solutions: 121
Registered: ‎06-23-2011

Re: Specifying Relay Response URL in POST form

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.

Highlighted
Member
Posts: 7
Registered: ‎11-23-2011

Re: Specifying Relay Response URL in POST form

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.

Highlighted
Posts: 1,609
Topics: 15
Kudos: 201
Solutions: 121
Registered: ‎06-23-2011

Re: Specifying Relay Response URL in POST form

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.

Highlighted
Member
Posts: 7
Registered: ‎11-23-2011

Re: Specifying Relay Response URL in POST form

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.

Highlighted
Solution
Accepted by topic author webphibian00
‎08-21-2015 01:58 AM
Posts: 1,609
Topics: 15
Kudos: 201
Solutions: 121
Registered: ‎06-23-2011

Re: Specifying Relay Response URL in POST form

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

Highlighted
Member
Posts: 7
Registered: ‎11-23-2011

Re: Specifying Relay Response URL in POST form

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