Links

Initializing DigitalRiver.js

Learn how to use your publishable API key to initialize DigitalRiver.js
‌Use DigitalRiver(publishableAPIKey) to create an instance of the DigitalRiver object. Your public API key is required when calling this function.
let digitalriver = new DigitalRiver("YOUR_PUBLIC_API_KEY", {
"locale": "en-us"
});
This function also accepts options (optional) using the following format: DigitalRiver(publishableApiKey[, options])
In options, you can specify a locale that localizes the library.
Option
Description
Supported locales
locale
Localizes the various display and error strings within DigitalRiver.js
ar-EG, cs-CZ, da-DK, de-AT, de-CH, de-DE, el-GR, en-AU, en-CA, en-GB, en-IE, en-IN, en-NZ, en-PR, en-US, en-ZA, es-AR, es-CL, es-CO, es-EC, es-ES, es-MX, es-PE, es-VE, et-EE, fi-FI, fr-BE, fr-CA, fr-CH, fr-FR, hu-HU, it-CH, it-IT, iw-IL, ja-JP, ko-KR, nl-BE, nl-NL, no-NO, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, th-TH, tr-TR, zh-CN, zh-HK, zh-TW

‌Localizing DigitalRiver.js

‌The following example localizes the various display and error strings to English (United States).
let digitalriver = new DigitalRiver("YOUR_PUBLIC_API_KEY", {
"locale": "en-us"
});