đŸ•ĸEvent Handling

PayPangea SDK provides various events that you can listen to, such as success, error, cancel, and update. Here's how to log these events:

const events = ['success', 'error', 'cancel', 'update'];

events.forEach(event => {
    payPangeaWidget.on(event, (data) => {
        console.log(`Event '${event}' received from PayPangea`, data);
    });
});

Last updated