What do we use as the Failure page (“sorry”) and what does it do?

If you have followed our setup guide, you are directed to place a fallback URL – https://domain.co.uk/wc-api/ag_authipay_checkout/ on the Failure Page (“Sorry”) field.

When is this URL used?

When a transaction has been declined. For example, customers who have not got 3D secure on their cards have tried to process a transaction.  These transactions will be declined if 3D secure isn’t completed successfully; therefore, Authipay will use the responseFailURL, the URL you have used on the Failure Page(“Sorry”) field.

Basically, our Authipay’s payment plugin sends decline and success URLs to the Authipay payment page.
If the transaction succeeds, it will send the user to  https://domain.co.uk/checkout/order-pay/, but if it fails, it will use https://domain.co.uk/wc-api/ag_authipay_checkout/ given that you have followed our setup guide mentioned above.

Why should we use this fallback?

Let’s say a customer tried to process the order; they would have been shown an error for a non-3D secure transaction. If this customer closed the browser after seeing this notice on the Authipay system, no data would be sent back to the website. If the customer waited for the auto-redirect back to the website, this “error” would have been logged in to the website. This fallback will send the order data should the customer close the browser or not go back to your website.

Was this helpful?