# Accessing country and currency

If you're using the [local pricing service](https://docs.digitalriver.com/digital-river-api/using-our-services/local-pricing) with a [low code checkout solution](https://docs.digitalriver.com/digital-river-api/integration-options/low-code-checkouts), then [`digitalRiverPricing`](#digitalriverpricing) allows you to access the user's selected country and currency[.](https://docs.digitalriver.com/digital-river-api/using-our-services/local-pricing#local-pricing-selector)

## `digitalRiverPricing`

The `digitalRiverPricing` object, which you can access after [`onReady`](https://docs.digitalriver.com/digital-river-api/developer-resources/initializing-digitalrivercheckout.js/digitalrivercheckout-configuration-object#onready) executes, exposes [`getCountry()`](#digitalriverpricing.getcountry) and [`getCurrency()`](#digitalriverpricing.getcurrency).

### `digitalRiverPricing.getCountry()`

Call `digitalRiverPricing.getCountry(`) to retrieve the country currently selected in the [local pricing selector](https://docs.digitalriver.com/digital-river-api/using-our-services/local-pricing#local-pricing-selector).

```javascript
digitalRiverPricing.getCountry();
```

The returned value is formatted as an [Alpha-2 country code](https://www.iban.com/country-codes).

### `digitalRiverPricing.getCurrency()`

Call `digitalRiverPricing.getCurrency()` to retrieve the currency that is currently selected in the [local pricing selector](https://docs.digitalriver.com/digital-river-api/using-our-services/local-pricing#local-pricing-selector).

```javascript
digitalRiverPricing.getCountry()
```

The returned value is formatted as a three-letter alphabetic code that conforms to the [ISO 4217](https://www.xe.com/iso4217.php) standard.
