Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
Contributor
Posts: 13
Registered: ‎10-21-2013

Re: Unable to read Relay Response POST Data in ASP.NET

Hi,

 

Please find the lines of code which am using to send the request

Random random = new Random();
strAuthorizeNet_x_fp_timestamp = ((int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds).ToString();
strAuthorizeNet_x_fp_sequence = (random.Next(0, 1000)).ToString();
strAuthorizeNet_x_relay_response = "TRUE";
strAuthorizeNet_x_relay_url = ConfigurationManager.AppSettings["RelayURL"];
strAuthorizeNet_x_test_request = "TRUE";

 

I have not hardcoded any values,and i have only one account.

Contributor
Posts: 13
Registered: ‎10-21-2013

Re: Unable to read Relay Response POST Data in ASP.NET

Can you please help me put,since this is the showstopper .No URL are hardcoded from the webpage and i have configured the same  URL in merchant account login.

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

Re: Unable to read Relay Response POST Data in ASP.NET

debug and see what

strAuthorizeNet_x_relay_url = ConfigurationManager.AppSettings["RelayURL"];

is

 

Contributor
Posts: 13
Registered: ‎10-21-2013

Re: Unable to read Relay Response POST Data in ASP.NET

Hi,

Thanks for the response,as suggested URL is hardcoded.It is working fine now. I am using SIM Mechanism.I have configured the relay URL in the merchant account,is it possible to return the relay URLwit the Querystring.

 

For ex: https://www.....com/Thanks.aspx?OrderId=9

 

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

Re: Unable to read Relay Response POST Data in ASP.NET

You can try, and if that don't work, you could remove all valid relay url from the account and try it again.

Contributor
Posts: 13
Registered: ‎10-21-2013

Re: Unable to read Relay Response POST Data in ASP.NET

But OrderID Will be dynamic,How to configure the URL to accept the dynamic value as the Query string?

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

Re: Unable to read Relay Response POST Data in ASP.NET

[ Edited ]

strAuthorizeNet_x_relay_url = ConfigurationManager.AppSettings["RelayURL"] + "whatever" + yourorderid;

 

or you can send it as a merchant defined fields

The thing to be careful is make sure it bigger then 4 digit, I think authorize.net will masked it if it think it is a CCV code.

Contributor
Posts: 13
Registered: ‎10-21-2013

Re: Unable to read Relay Response POST Data in ASP.NET

Not in the code,I need to configure the same in merchant account .

Contributor
Posts: 13
Registered: ‎10-21-2013

Re: Unable to read Relay Response POST Data in ASP.NET

If I dont Configure the same in the merchant account of relay URL i am getting the error as relay URL or receipt URL is invalid.

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

Re: Unable to read Relay Response POST Data in ASP.NET

[ Edited ]

I'm not sure what the issue is, I just tried it on my test account and it let me add something like

https://www.whatever.com/Thanks.aspx?OrderId=9

in the merchant account settings