Initializing DigitalRiver.js

Learn how to use your publishable API key to initialize Digital River.

Use the DigitalRiver(publishableAPIKey) object to create an instance of the DigitalRiver object. This is called a Digital River publishable API key.

let digitalriver = new DigitalRiver("YOUR_PUBLIC_API_KEY", {
     "locale": "en-us"
});

This function accepts an optional options object using the following format: DigitalRiver(publishableApiKey[, options])

In options, you can specify a locale that localizes the library.

Option
Description

locale

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"});

Last updated

Was this helpful?

#1249: DOC-395 CCAvenue

Change request updated