If you have followed our setup guide here, you are directed to place a fallback URL – https://domain.co.uk/wc-api/ag_tyl_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, Tyl will use the responseFailURL, the URL you have used on the Failure Page(“Sorry”) field.
Basically, our Tyl By NatWest Cardnet payment plugin sends a decline and success URL to the Tyl 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_tyl_checkout given that you have followed our setup guide mentioned above.
Why should we use this fallback?
If a customer tried to process the order, they would have been shown an error for a non-3D secure transaction. Now, if this customer closed the browser after seeing this notice on the
Tyl By NatWest 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 on the website. This fallback will send the order data should the customer close the browser or not go back to your website.