restoreFormFields() is a default implementation of a afterRedirect callback. When used in conjunction with saveFormFields(), the contents of any input elements on your page can be restored across browser redirects during the payment process.
restoreFormFields() can be configured as the afterRedirect callback using the data-afterRedirect
attribute on the Checkout
script tag.
<html> <head> <script src="https://evopaymentsmexico.gateway.mastercard.com/checkout/version/79/checkout.js" data-beforeRedirect="Checkout.saveFormFields" data-afterRedirect="Checkout.restoreFormFields"> </script> </head> ... </html>
An object which represents the input elements on the current page and their values. This is the return value of saveFormFields().
None