📖
PayPangea Integration Guide
  • 👋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

Handling Logins

For handling logins with PayPangea, add a login button and set up an event listener for click events.

<button id="loginbtn" class="buybtn">Login with PayPangea</button>

Then, add JavaScript to handle the button click and invoke the showLogin method :

var loginBtn = document.getElementById('loginbtn');

loginBtn.addEventListener('click', function() {
    payPangeaWidget.showLogin({});
});
PreviousIntegration StepsNextEvent Handling

Last updated 1 year ago

💾
👨‍đŸ’ģ