cancel
Showing results for 
Search instead for 
Did you mean: 

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?

 

 

ChanceND
Contributor
1 ACCEPTED SOLUTION

Accepted Solutions

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

ChanceND
Contributor
11 REPLIES 11

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.

RaynorC1emen7
Expert

Nothing has changed on the sim pages and they are all on same servers as they were before changing the Silent Post 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.

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.

 

 

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.

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?

 

 

ChanceND
Contributor

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.

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.

 

 

 

 

ChanceND
Contributor

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 = "";

Type a product name