Performing actions on the checkout button
Gain a better understanding of how to perform customized actions on the Prebuilt Checkout button
Start and stop a loading spinner
onClick: async (actions) => {
...
actions.loading.start();
const checkoutSessionId = await createCheckoutSession();
actions.loading.stop();
...
}Open a checkout modal
Last updated