Usage
saveFormFields() can be configured as the beforeRedirect callback using the data-beforeRedirect
attribute on the Checkout
script tag.
Example
<html>
<head>
<script src="https://tyro.gateway.mastercard.com/checkout/version/80/checkout.js"
data-beforeRedirect="Checkout.saveFormFields"
data-afterRedirect="Checkout.restoreFormFields">
</script>
</head>
...
</html>
Arguments
None
Return Value
fieldData
An object which represents the input elements on the current page and their values.
The input values can be re-written to the page page by passing this object to restoreFormFields().