To launch the checkout, follow these steps:Documentation Index
Fetch the complete documentation index at: https://docs.appcharge.com/llms.txt
Use this file to discover all available pages before exploring further.
- From your server, call the Create Checkout Session API to create a checkout session.
-
After receiving the API response on your server, extract the values from the session object:
Parameter Description checkoutSessionTokenA unique token to identify and validate the checkout session. purchaseIdID to track the purchase. urlThe base URL of the Appcharge checkout page. parsedUrlThe base URL with data configurations. -
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.
-
You can also configure how the checkout page is opened (optional):
-
External browser
Open the checkout in the device’s default browser. This flow will use theredirectUrlprovided in the initialization to return back to the app. -
Non-external browser (default)
The checkout opens in the device’s internal browser or SFSafariViewController. This flow will use the url scheme provided in the plist file to return back to the app. For more information, see Sell Outside IAP.
-
External browser
