getPricePoints
method is compatible across multiple frameworks, including ReactJS, VueJS, Angular, and Vanilla JavaScript. Additionally, the SDK supports both sandbox
and prod
environments, allowing flexible configuration for testing or production.
For more details on how to integrate price localization in different frameworks, please refer to the specific SDK documentation:
Init
function is called, the SDK captures the player’s geographical location.getPricePoints
method is used to retrieve these price points in your application, allowing you to display the relevant prices for your users.getPricePoints
function, which provides:
createCheckoutSession
with the relevant offer to initiate the checkout flow.
getPricePoints
method works consistently across different front-end frameworks. The method accepts the same parameters and provides the same functionality in each framework.
Parameters:
environment
(string, required): Can be either sandbox or prod.domain
(string, optional): Defaults to the current domain if not provided.getPricePoints
function from the relevant SDK.getPricePoints
.getPricePoints
function from the Appcharge ReactJS SDK:
getPricePoints
function from the Appcharge VueJS SDK:
getPricePoints
from the Appcharge Angular SDK within your component:
getPricePoints
method directly: