Reply
Contributor
Posts: 10
Registered: ‎12-10-2013
Accepted Solution

Silent Post Issue after changing URL

I have come across a strange issue.   We are in the process of moving our website to a new server.  Currently we have some payment apps (sim, asp.net) on both the new server and the current server we are moving away from.

 

Everything works fine when the silent post URL is on the old server, but when I copy exact same page over to the new server and update the silent post URL to go to this new page on the new server it works for payments submitted from the old site/server but payments submitted from new server the silent page doesn't get sent anything at all.

 

Anyone have any ideas for things I could check?

 

 


Accepted Solutions
Solution
Accepted by topic author ChanceND
‎08-21-2015 01:58 AM
Contributor
Posts: 10
Registered: ‎12-10-2013

Re: Silent Post Issue after changing URL

Figured out my original issue after trying various things I found in other forum posts.

 

To get the two payment forms to work with the silent post URL on the new server I just had to add this to the Page setting of the page that was submitted to authorize.net

 

enableViewStateMac="false"

 

Must be related to the .NET Frameworks.  The old silent post URL was .net 2.0 and the new server its on is 4.0.  The two sites that did not work after switching the silent post page to 4.0 were also 4.0.

 

 

 

 

View solution in original post


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

Re: Silent Post Issue after changing URL

compare the sim page web browser page source. It might be passing something on the new server that it wasn't on the old one.

Contributor
Posts: 10
Registered: ‎12-10-2013

Re: Silent Post Issue after changing URL

Nothing has changed on the sim pages and they are all on same servers as they were before changing the Silent Post URL.

 

 

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

Re: Silent Post Issue after changing URL

Have you try set the silent post url back to the old server and have send a SIM page from the new server? That will tell you if there is an issue with the new SIM.

Contributor
Posts: 10
Registered: ‎12-10-2013

Re: Silent Post Issue after changing URL

Yep, sending the sim page from the new server to the old server works just fine.  Sending sim page from old sever to new server works fine, but sim page from new server to new server doesnt get sent.

 

 

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

Re: Silent Post Issue after changing URL

I know you said no code was change, but have you check the sim page web browser page source from the new server? I wonder if the new server passing something new and/or different.

Contributor
Posts: 10
Registered: ‎12-10-2013

Re: Silent Post Issue after changing URL

Would it be possible to use Relay Response for the two sites that are not getting the silent post sent after a payment and still use Silent Post for the sites that are working or does it have to be the same for all sites under our authorize.net account?

 

 

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

Re: Silent Post Issue after changing URL

Silent post is an account level settings, relay response could be either account or form submit settings.

You could use both, just check to make sure there isn't a duplicate before you do something on your site.

Contributor
Posts: 10
Registered: ‎12-10-2013

Re: Silent Post Issue after changing URL

I got it to work when I use the sample relayresponse.asp sample page from the website but when I convert that page to asp.net it doesnt redirect to the page and gives me this error message instead.

 

"An error occurred while trying to report this transaction to the merchant. An e-mail has been sent to the merchant informing them of the error. The following is the result of the attempt to charge your credit card.

      This transaction has been approved.

It is advisable for you to contact the merchant to verify that you will receive the product or service.

"

 

These are the only fields I added to the form.

<inputtype='hidden'name='x_submit_type'value='Relay'/>

<inputtype='hidden'name='x_relay_response'value='true'/>

<inputtype='hidden'name='x_relay_url'value='<url>'/>

 

 

I also verified that I have my reponse page URL entered correctly in the Response/Receipt URLs settings.

 

 

 

 

Contributor
Posts: 10
Registered: ‎12-10-2013

Re: Silent Post Issue after changing URL

This is beginning of my .NET code.  I dont think its getting this far though.

 

protectedvoid Page_Load(object sender, EventArgs e)

{

try

{

Response.Expires = 0;

string ResponseCode = Request.Form["x_response_code"].ToString().Trim();

string ResponseReasonText = Request.Form["x_response_reason_text"].ToString().Trim();

string ResponseReasonCode = Request.Form["x_response_reason_code"].ToString().Trim();

string AVS = Request.Form["x_avs_code"].ToString().Trim();

string TransID = Request.Form["x_Trans_ID"].ToString().Trim();

string AuthCode = Request.Form["x_Auth_Code"].ToString().Trim();

string Amount = Request.Form["x_Amount"].ToString().Trim();

string ReceiptLink = "http://www.authorizenet.com";

string strResult = "";