As a part of the
Paddle.Setup() call, you can pass an
eventCallback parameter. This function is called for every Paddle checkout event, allowing you trigger behaviors based on user interactions with Paddle.
Close checkout parameter callbacks, the
eventCallback is non-blocking and occurs in the background, letting Paddle.js and the checkout continue with its typical functionality.
|Checkout has been initialized on the page
|User lands on the screen to enter their email and location details
|User lands on the screen to select payment method
|User selected a payment method
|Checkout has been completed successfully. This is equivalent to when the "successCallback" checkout parameter is fired here.
|Checkout has been closed on the page. This is equivalent to when the "closeCallback" checkout parameter is fired here.
|User has opted into/out of marketing emails in the checkout
|User has changed the quantity in the checkout
|User has proceeded past the email checkout step
|User selected 'Not you? Change' in bottom right of checkout
|Payment method has been selected
|User clicked 'Add Coupon'
|User has submitted a coupon
|User has cancelled the coupon page
|Valid coupon applied to purchase
|Coupon has been removed
|Any generic checkout error, like an invalid VAT number or payment failure
|Checkout failed to load because the user is in a sanctioned country.
|User proceeded past the location page
|Language has been changed in the bottom right
|User clicked 'Add VAT Number'
|VAT screen cancelled
|VAT number was submitted
|VAT number was accepted and applied
|VAT number was removed
|User completed a checkout with Wire Transfer as the selected payment type. Always fired with
|User has completed a checkout and selected an offline payment type (in this scenario, any details that the user needs to make their payment offline, are displayed).
|Payment has been completed successfully.
Check if the payment has been flagged for manual fraud review in the
eventData.flagged property, which returns a boolean value of
|User has selected "Change Payment Method" when on the payment screen
|User has selected "Change Payment Method" when on the Wire Transfer screen
Try logging event data to the console to view the full range of values returned with each event.