Player Payment Real Time SDK Events
The Appcharge checkout will fire the following front-end side events to enable realtime analytics for the publisher usage:
Event name | Description |
---|---|
onOrderCreated | A checkout was created successfully |
onClose | The checkout was closed by the player |
onPaymentIntentSuccess | A player has made a successful payment |
onOrderCompletedSuccessfully | The publisher has acknowledged that a player's account was awarded with the purchase (This event follows the onPaymentIntentSuccess event) |
onPaymentIntentFailed | A player tried to make a payment, and the payment failed. (Mostly due to card decline or incomplete APM flow) |
onOrderCompletedFailed | The award has failed, although the payment was successful |
Below are the parameters that will be added to the relevant events:
Name | Description | Event |
---|---|---|
orderId | Unique identifier for the order. | All |
date | Epoch timestamp | All |
bundleId | Identifier for the bundle. | All |
bundleName | Name of the bundle associated with the order | All |
bundleSKU | Stock Keeping Unit (SKU) for the bundle. | All |
products\[] | An array of products included in the order. | All |
sessionId | Identifier for the session associated with the order. | All |
totalSum | The total sum of the order. | All |
totalSumCurrency | Currency of the total sum. | All |
userCountry | The country associated with the user. | All |
userId | Identifier for the user placing the order. | All |
reason | Reason for the order or additional notes. | onPaymentIntentFailed onOrderCompletedFailed |
paymentMethodName | Name of the payment method used for the order. | onPaymentIntentSuccess onOrderCompletedSuccessfully onPaymentIntentFailed``onOrderCompletedFailed |
Updated 3 months ago