Skip to main content
This article explains how you can manage and retrieve localize prices in the Checkout using Appcharge Price Points, ensuring players see prices in their preferred currency.

Set and manage Price Points

In the Publisher Dashboard, set and manage price points for each locale you support.

Fetch Price Points

Use the getPricePoints function to retrieve the Price Points you configured in the Publisher Dashboard:
import { getPricePoints } from "appcharge-checkout-reactjs-sdk";

Parameters

ParameterTypeRequiredDescription
environmentstringYesThe checkout environment.
One of:
- sandbox: For testing.
- production: For live operations.
checkoutPublicTokenstringYesThe checkout public key, located in the Publisher Dashboard. In the sidebar menu, click Settings, then select the Integration tab. Copy the Checkout Public Key value.

Example

async function fetchPricePoints() {
    try {
      const pricePoints = await getPricePoints(environment, checkoutPublicToken);
    } catch (error) {
      console.error(error);
    }
  }