Learn how to handle events and messages from the Paysight Widget
onMessage
callback provided during widget initialization:
Lifecycle Events
READY
event indicates that the widget is fully initialized and ready to accept user input. This is a good time to hide any loading indicators.Payment Events
PAYMENT_SUCCESS
and PAYMENT_ERROR
events to provide appropriate feedback to users.3D Secure Events
Form Events
Handle Critical Events
Implement Error Recovery
Maintain UI State
Provide User Feedback