Parameter | Type | Description |
---|---|---|
checkoutSessionToken | String | A unique token that identifies and validates the checkout session. |
purchaseId | String | A unique ID to track the transaction. |
url | URL | The base URL for the Appcharge checkout page. |
{$url}/{$checkoutSessionToken}?cot={$Checkout_Public_Key}
You can find the Checkout Public Key in the Publisher Dashboard under Settings -> Integration -> Checkout Public Key.
Important: The cot
parameter is required, and without it, the checkout page will not load correctly.
Your checkout URL should look something like this:
https://appcharge-checkout-url.com/eb02bb412ccb47948f7d62667a7774b1?cot=0b2b42ab8a3d491ba76b6b8919d8e0ee
Next, open this URL in the browser.
Note: Notify players that they’ll briefly leave the app to complete their purchase securely in a mobile browser.
redirectUrl
you provided in the Create Checkout Session API request.
The URL includes the following query parameter:
Parameter | Type | Description |
---|---|---|
status | String | Indicates the result of the payment process. One of: ?status=success : The purchase was completed successfully. ?status=fail : An error occurred during the purchase process, or the player closed the checkout window.?status=cancel : The player actively canceled the purchase. |
redirectUrl
, parse the URL to extract the status
.
If status=success
, send this data to your game server to validate the transaction against the data received from the Player Order Reporting Webhook.
If the purchase is valid, apply the corresponding items to the player’s account.