Accessing country and currency

If you're using local pricing with a low-code checkout solution, learn how to access the country and currency selected by customers

If you're using the local pricing service with a low code checkout solution, then digitalRiverPricing allows you to access the user's selected country and currency.

digitalRiverPricing

The digitalRiverPricing object, which you can access after onReady executes, exposes getCountry() and getCurrency().

digitalRiverPricing.getCountry()

Call digitalRiverPricing.getCountry() to retrieve the country currently selected in the local pricing selector.

digitalRiverPricing.getCountry();

The returned value is formatted as an Alpha-2 country code.

digitalRiverPricing.getCurrency()

Call digitalRiverPricing.getCurrency() to retrieve the currency that is currently selected in the local pricing selector.

digitalRiverPricing.getCountry()

The returned value is formatted as a three-letter alphabetic code that conforms to the ISO 4217 standard.

Last updated