Usage
restoreFormFields() can be configured as the afterRedirect callback using the data-afterRedirect
attribute on the Checkout
script tag.
Example
<html>
<head>
<script src="https://ap-gateway.mastercard.com/checkout/version/59/checkout.js"
data-beforeRedirect="Checkout.saveFormFields"
data-afterRedirect="Checkout.restoreFormFields">
</script>
</head>
...
</html>
Arguments
fieldData
An object which represents the input elements on the current page and their values. This is the return value of
saveFormFields().
Return Value
None