To launch the checkout, follow these steps:
  1. From your server, call the Create Checkout Session API to create a checkout session.
    Make this API call 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 relevant values and pass them to the OpenCheckout function on the client:
    ParameterDescription
    urlThe base URL of the Appcharge checkout page.
    checkoutSessionTokenA unique token to identify and validate the checkout session.
    purchaseIdID to track the purchase.
    CheckoutController.Instance.OpenCheckout(
        "URL"
        "CHECKOUT_SESSION_TOKEN",
        "PURCHASE_ID",
    )