Client-side events
In order to provide a better customer experience you can listen to custom client-side events and take appropriate action. All events are dispatched using the global document object as target and cannot be cancelled and does not bubble.
Please Note
Do not rely on client-side events for business critical functionality. Use the api to retrieve information. For example:
- Instead of relying only on
walleyCheckoutPurchaseCompleted, listen for the Completed Purchase callback. - When receiving a
walleyCheckoutCustomerUpdated, get checkout information of what has been updated.