Events (callbacks)

The table below summarizes events that can occur and the information available.

Event NameDescription
onModalOpenTriggered when the ChargeAfter modal is opened.
onApplicationCreatedSends a ChargeAfter applicationId when the modal is opened.
onDataUpdateSends 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.
onApprovalStatusChangeThe event is triggered when there are updates to the consumer's application from a lender or payment provider, eg. lease-to-own.
onConfirmThe 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.

What’s Next