After the script `collector-checkout-loader.js` has been loaded it will be possible to interact with the iframe using the provided API. The API functions are exposed via the global object `window.collector.checkout.api`.
// Suspend the Checkout, showing a spinner...
// ... then do something...
// ... and finally resume the Checkout.
|init||(none)||This re-executes the initialization of the loading script. Not needed under normal circumstances.|
|suspend||Sets the Checkout iframe in suspend mode. This results in all inputs and buttons being disabled and a spinner to be shown. If |
|resume||Resumes the Checkout to its normal state after a suspend. This results in data being loaded from the Checkout backend in order to stay up to date with any changes. If |