πŸ“–
PayPangea Integration Guide
CtrlK
  • πŸ‘‹PayPangea Integration Guide
  • Product Guides
    • πŸ“ͺGetting Started
    • ℹ️Integration Options
  • πŸ’°WALLET CREATION
    • ℹ️Introduction
    • βš™οΈAPI Integration
      • β˜•Integration steps
      • πŸͺ™Request a wallet
  • LOGIN WITH PAYPANGEA
    • πŸ’ΎSDK Integration
      • β˜•Integration Steps
      • πŸ‘¨β€πŸ’»Handling Logins
      • πŸ•’Event Handling
    • βš™οΈAPI Integration
      • β˜•Integration steps
      • πŸ§‘β€πŸ’»Show login page
    • πŸ§™β€β™‚οΈServer-side verification
      • β˜•Integration steps
      • πŸͺ™Request authentication
  • CRYPTO PAYMENTS
    • πŸ’ΎSDK Integration
      • β˜•Integration Steps
      • πŸ’΅Handling Payments
      • πŸ•’Event Handling
    • βš™οΈAPI integration
      • β˜•Integration steps
      • πŸ•΅οΈAuthentication
      • πŸͺ™Request payment based on crypto
      • πŸ’΅Request payment based on fiat
      • πŸ’²Collecting Payments
  • WEBHOOKS
    • πŸͺWebhooks
  • Other
    • Troubleshooting
    • FAQ
Powered by GitBook
On this page
  1. LOGIN WITH PAYPANGEA
  2. πŸ’ΎSDK Integration

πŸ•’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);
    });
});
PreviousHandling LoginsNextAPI Integration

Last updated 1 year ago