Showing results for 
Search instead for 
Did you mean: 

BeginSIMForm not return to url when fail


The BeginSIMForm method work well if all information is valid

But when I imput wrong credit card , It show error on 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 ?



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?


Yes , I set relay response on my account in

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 does not redirect when credit card fail , it also stay page

But it will redirect to my page when all info is valid .



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: