The complete callback will be invoked when the payment has been completed.
The complete callback must be defined using the data-complete
attribute on the Checkout script tag. The attribute value may be the name of a global function or a URL string. URLs will have a query parameter appended for each argument.
The complete callback is only supported in a Return To Merchant integration.
<html> <head> <script src="https://suncorp.gateway.mastercard.com/checkout/version/41/checkout.js" data-complete="completeCallback"></script> <script type="text/javascript"> function completeCallback(resultIndicator, sessionVersion) { //handle payment completion } </script> </head> ... </html>
<html> <head> <script src="https://suncorp.gateway.mastercard.com/checkout/version/41/checkout.js" data-complete="http://[your domain]/receiptPage"></script> </head> ... </html>
The result indicator can be used to securely determine if the payment succeeded in a Return To Merchant integration.
Version of the Payment Session after payment completed.
None