Performing actions on the checkout button
Gain a better understanding of how to perform customized actions on the Prebuilt Checkout button
Last updated
Gain a better understanding of how to perform customized actions on the Prebuilt Checkout button
Last updated
Various callback functions can be assigned to properties in the button options configuration object. Some of these functions accept an optional actions
parameter, which allows you to:
The actions
parameter exposes loading.start()
and loading.stop()
. These two functions display and hide a spinning GIF, a visual cue that the checkout window is opening.
The actions
parameter exposes checkout.modal.open()
, which accepts a required id
and an optional configuration object, and results in creating a checkout window.
For details, refer to Button click event on the Rendering a checkout button page.