Reply
Highlighted
Contributor
Posts: 24
Registered: ‎12-06-2012
Accepted Solution

Trouble setting up SIM that makes no sense

Good day;

 

Alright, here's the issue I have, I'm currently trying to set up a SIM system, and I keep getting an error response code 14: http://support.authorize.net/authkb/index?page=content&id=A601

 

Anyways, I've gone over the support, searched the forums, and agonized over this for almost a week now and I'm no closer to solving this than when I started.

 

The big problem I'm getting is, my logs are empty, it's as if I send the request out to Authorize.Net and nothing comes back at all to my server and it instantly spits out the above error.

 

This is also in C# to those who are interested, so I'll try to throw snippets in here that are non-specific.

 

_response.Write("<form action = '" + formAction + "' method = 'post'>\n");
            _response.Write("\t\t<input type = 'hidden' name = 'x_fp_hash' value = '" + fingerPrint + "' \\>\n");
            _response.Write("\t\t<input type = 'hidden' name = 'x_fp_sequence' value = '" + seq + "'\\>\n");
            _response.Write("\t\t<input type = 'hidden' name = 'x_fp_timestamp' value = '" + stamp + "' \\>\n");
            _response.Write("\t\t<input type = 'hidden' name = 'x_login' value = '" + _apiLogin + "' \\>\n");
            _response.Write("\t\t<input type = 'hidden' name = 'x_tran_key' value = '" + _transactionkey + "' \\>\n");
            _response.Write("\t\t<input type = 'hidden' name = 'x_amount' value = '" + _order.TotalPayable.Amount + "' \\>\n");
            _response.Write("\t\t<input type = 'hidden' name = 'x_relay_url' value = '" + _returnUrl + "' \\>\n");
            _response.Write("\t\t<input type = 'hidden' name = 'x_po_num' value = '" + _order.OrderNumber + "' \\>\n");
            _response.Write("\t\t<input type = 'hidden' name = 'x_relay_response' value = 'TRUE' \\>\n");

 

That's my SIM form generation script that produces the following HTML

 

		<input type = 'hidden' name = 'x_fp_hash' value = 'a5796de3cf172f254247c18ec7765969' \>
		<input type = 'hidden' name = 'x_fp_sequence' value = '679'\>
		<input type = 'hidden' name = 'x_fp_timestamp' value = '1354822639' \>
		<input type = 'hidden' name = 'x_login' value = '00000000' \>
		<input type = 'hidden' name = 'x_tran_key' value = '00000000' \>
		<input type = 'hidden' name = 'x_amount' value = '30.00' \>
		<input type = 'hidden' name = 'x_relay_url' value = 'http://somewhere.something.net/responsenotification/anet' \>
		<input type = 'hidden' name = 'x_po_num' value = '221' \>
		<input type = 'hidden' name = 'x_relay_response' value = 'TRUE' \>

Now that link in reality passes no data, but also passes an HTTP Response of 200, so it should be working fine for the condition of 'needing a response' that I read about in one post

 

Again, I'm having difficulty debugging this because I can't see any of my logging lines tripping in my error log code, and the only errors that map are the 'no data errors' when I manually go to that page it references, is ANET not even going to where the relay_url is telling them to go?

 

Also, is there a way to send this data to one place, and send the user to a different location? A design decision for the current project was to separate the threading to send the payments to a background worker in the site and the users elsewhere and I have to accomodate that functionality unfortunately.


Accepted Solutions
Solution
Accepted by topic author AaronHildebrand
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Trouble setting up SIM that makes no sense

I think you can remove relay url from the merchant account settings.

Once you do that the x_relay_url will works, it just won't validate againist someone temper with it.

View solution in original post


All Replies
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Trouble setting up SIM that makes no sense

error 14 mean the relay url settings on your merchant accounts is set to an url other than http://somewhere.something.net/responsenotification/anet . login to your merchant account to check that. if it ishttps it need to be https.

 

not sure about a different thread, since the the CC info are entery in authorize.net, you can't really have any control of what it doing. unless you want to do a popup before you submit to authorize.net SIM form.

Contributor
Posts: 24
Registered: ‎12-06-2012

Re: Trouble setting up SIM that makes no sense

Okay, well here's problem number two, that URL can't be default then, because the response receiving page url is dynamically generated using URL Rewriting to include the order ID.

 

Should I just leave that field blank for it to take from the SIM form or am I up the creek without a paddle on this one?

Solution
Accepted by topic author AaronHildebrand
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Trouble setting up SIM that makes no sense

I think you can remove relay url from the merchant account settings.

Once you do that the x_relay_url will works, it just won't validate againist someone temper with it.

Contributor
Posts: 24
Registered: ‎12-06-2012

Re: Trouble setting up SIM that makes no sense

Now why couldn't support have just told me that when I was chatting with them?

 

Thank you kindly RaynorC1emen7, I've still got more development to go but this gets me past the silent barricade I've had to deal with thusfar.

 

Take care!