Skip to main content
The AppchargeCheckout component supports the following front-end event properties to enable realtime analytics:
Event NameTypeRequiredHas ParametersDescription
onCloseFunctionNoYesTriggered when the checkout popup is closed.
onOrderCreatedFunctionNoYesTriggered when an order is created.
onOrderCompletedFailedFunctionNoYesTriggered when an order failed due to an internal error or publisher reward error.
onOrderCompletedSuccessfullyFunctionNoYesTriggered when an order was updated with the publisher and confirmation was received.
onPaymentIntentFailedFunctionNoYesTriggered when the player clicks Pay and the payment fails.
onPaymentIntentSuccessFunctionNoYesTriggered when the player clicks Pay and the payment is charged successfully.

Event parameters

Below are the parameters that you can pass to the event functions. Not all parameters are available for every event, and ones that are unavailable will be undefined.
NameDescriptionEvent Name
orderIdOrder ID.All
dateEpoch timestamp.All
bundleIdBundle ID.All
bundleNameBundle name.All
bundleSKUStock Keeping Unit (SKU) for the bundle.All
products[]An array of products included in the order.All
sessionIdIdentifier for the session associated with the order.All
totalSumThe total sum of the order.All
totalSumCurrencyCurrency of the total sum.All
userCountryThe country associated with the player.All
userIdPlayer ID.All
reasonReason for the failure or additional notes.onPaymentIntentFailed onOrderCompletedFailed
paymentMethodNameName of the payment method used for the order.onPaymentIntentSuccess onOrderCompletedSuccessfully onPaymentIntentFailed onOrderCompletedFailed
isSavedPaymentMethodUsedWhether the player used or attempted to use a saved card (card on file) during checkout.onPaymentIntentSuccess onOrderCompletedSuccessfully onPaymentIntentFailed onOrderCompletedFailed
isNewPaymentMethodSavedWhether the player saved or attempted to save a new card during checkout.onPaymentIntentSuccess onOrderCompletedSuccessfully onPaymentIntentFailed onOrderCompletedFailed