Events (callbacks)
The table below summarizes events that can occur and the information available.
Event Name | Description |
---|---|
onModalOpen | Triggered when the ChargeAfter modal is opened. |
onApplicationCreated | Sends a ChargeAfter applicationId when the modal is opened. |
onDataUpdate | Sends the consumer's details, including address when the information is changed in the ChargeAfter modal. The merchant can decide whether to update cart details when the event occurs. |
onApprovalStatusChange | The event is triggered when there are updates to the consumer's application from a lender or payment provider, eg. lease-to-own. |
onConfirm | The event is triggered when financing is finalized in the Checkout flow before the checkout occurs. The merchant will get a token that can be used to authorize a charge with the lender or payment provider. |
callback (Completion) | The event is triggered once the ChargeAfter modal has closed whether the consumer completed the process successfully or not. The event contains all consumer details and select lender or payment provider information. |
Updated 3 months ago
What’s Next