DigitalRiverCheckout object
Learn about the functionality exposed by the DigitalRiverCheckout object
Last updated
Learn about the functionality exposed by the DigitalRiverCheckout object
Last updated
Once you , you can use the DigitalRiverCheckout
object to:
The DigitalRiverCheckout
exposes the and functions, either of which can be used to create an interface that customers use to checkout.
createModal(checkoutSessionId, config)
This function creates an instance of a checkout modal window, a graphical control element that appears in front of the other content on the page. When displayed, the user’s interaction with your content is temporarily disabled, and they must engage with the modal by completing checkout or closing the window.
The function accepts a and a .
embed(checkoutSessionId, config)
This function creates an and adds , allowing you to embed the entire checkout process directly into your website.
The function accepts a required identifier and an optional . However, if you want Digital River to add the iframe
to a specific HTML element, you'll need to define in the configuration object.
The DigitalRiverCheckout
object exposes components()
. For details, refer to .
The DigitalRiverCheckout
object exposes renderButton()
, which displays a checkout button allowing customers to initiate the checkout process. For details, refer to .
The DigitalRiverCheckout
object exposes getStatus()
, which returns data on a Prebuilt Checkout's current state. For details, refer to Determining