DigitalRiverCheckout object
Learn about the functionality exposed by the DigitalRiverCheckout object
Create an instance of a Prebuilt Checkout
createModal(checkoutSessionId, config)
document.getElementById('YOUR_CHECKOUT_BUTTON_ID').addEventListener('click', async (event) => {
//Invokes a client defined function that creates a checkout session
const checkoutSessionId = await createCheckoutSession();
// Creates and opens Prebuilt Checkout in a modal window
drCheckout.createModal(checkoutSessionId, config);
})embed(checkoutSessionId, config)
Creating an instance of components
Display the checkout button
Determine the status of the modal
Last updated