Skip to main content
To launch the checkout, follow these steps:
  1. From your server, call the Create Checkout Session API to create a checkout session.
    • When calling the Create Checkout Session API, don’t pass the redirectUrl parameter. The SDK already handles the redirect automatically using the configuration file.
    • Call the API from your server to ensure session integrity and security. Never invoke this endpoint from your client-side code.
  2. After receiving the API response on your server, extract the values from the session object:
  3. Use the values returned in the checkout session response to open the checkout on the client:
    The session response values must be passed exactly as received. Modifying them may result in the checkout failing to load.
  4. You can also configure how the checkout page is opened (optional):
    Running the checkout in an external browser may cause inconsistent behavior across devices and Android versions, including session loss, incomplete transactions, or app unexpected lifecycle behavior.