Hi,
The BeginSIMForm method work well if all information is valid
But when I imput wrong credit card , It show error on https://test.authorize.net/gateway/transact.dll page and don't redirect my page :
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.
The credit card number is invalid.
How to redirect my page in this case ?
02-06-2012 04:03 AM
Your relay response is not working. See if this help
02-06-2012 05:17 AM
Did you set up a relay response page, and if so, did you change the relay response URL in your control panel settings to match its location?
02-06-2012 06:40 AM
Yes , I set relay response on my account in test.authorize.net
I also add two field below to my page :
<input name="x_relay_response" id="x_relay_response" type="hidden" value="TRUE" />
<input name="x_relay_url" id="x_relay_url" type="hidden" value="my response page" />
But authorize.net does not redirect when credit card fail , it also stay page https://test.authorize.net/gateway/transact.dll.
But it will redirect to my page when all info is valid .
02-06-2012 07:21 PM
You could try setting the x_relay_always flag and see what happens. From the documentation:
If a transaction encounters an error or is part of a partial authorization, and you are using Relay Response, the Authorize.Net payment form reappears, offering an option to try again or enter another form of payment to complete the order. If you are using your own payment form, such as with the Direct Post Method, you should set x_relay_always to true to prevent the standard Authorize.Net payment form from redisplaying instead of your own customized payment form. For more information on how to integrate your website using the Direct Post Method, see:
http://developer.authorize.net/guides/DPM/
02-06-2012 09:52 PM