Introduction
Agreement
Authentication
Batch
Browser Payment
Gateway
Hosted Checkout
Payment Plan
Session
Tokenization
Transaction
Wallet
RESOURCES
Changelog
Checkout
timeout
timeout Callback
The timeout callback is invoked when the payment is not completed within the duration (in seconds) available to the payer to make the payment. This will either be the time you specified in interaction.timeout when you sent the CREATE_CHECKOUT_SESSION request or the gateway default timeout value.
Usage Copied to clipboard
The timeout callback must be defined using the data-timeout
attribute on
the Checkout
script tag. The attribute value may be the name of a global function or a URL string.
Example Copied to clipboard
<html> <head> <script src="https://testpg.mpgs.axisbank.com/static/checkout/checkout.min.js" data-timeout="timeoutCallback"></script> <script type="text/javascript"> function timeoutCallback() { //handle payment timeout } </script> </head> ... </html>
<html> <head> <script src="https://testpg.mpgs.axisbank.com/static/checkout/checkout.min.js" data-timeout="http://[your domain]/timeoutPage"></script> </head> ... </html>
Arguments Copied to clipboard
None
Return Value Copied to clipboard
None