DigitalRiverCheckout configuration object
Learn about the functionality that exists within the DigitalRiverCheckout configuration object
Defining a local pricing selector
const config = {
countrySelector: {
containerId: 'country-selector',
priceElement: ['div.price', 'span.price'],
onReady: () => {},
onOpen: () => {},
onSelect: (data) => {},
onSave: (data) => {},
onCancel: () => {}
}
};
...
const digitalRiverCheckout = new DigitalRiverCheckout('YOUR_PUBLIC_API_KEY', config);countrySelector
countrySelectorcontainerId
containerIdpriceElement
priceElementLocal pricing selector events
onReady
onReadyonOpen
onOpenonSelect
onSelectonSave
onSaveonCancel
onCancelLast updated