WebUPI Protocol
  • Namaste
    • â„šī¸Welcome to WebUPI!
    • 🏆Benefits of WebUPI
  • How to
    • 👨‍đŸ’ģGetting Started with WebUPI
    • đŸ’ģWebUPI Reference
      • webUPI.enable()
      • webUPI.sendPayment()
      • webUPI.requestPayment()
      • webUPI.getUPIId()
      • webUPI.getPaymentStatus()
      • Error Handling in WebUPI
  • other
    • 📱WebUPI Providers
    • 📓Helpful references
  • WebUPI Providers
    • For Providers
      • Implementing WebUPI as a UPI Provider
  • WebUPI x Web3 Bridge
    • â„šī¸Introduction
    • 👩‍đŸ’ģGet Started
      • webUPI.sendPaymentToLightning()
      • webUPI.requestLightningInvoice()
    • đŸĻ¸Upgrades
  • More Protocols
    • 📓UPI Withdrawal Protocol Specification (UPIW)
    • 📓Commerce Unified Payment Protocol Specifications (CUPP)
    • 📓Real-Time Money Streaming Protocol (RTMS)
Powered by GitBook
On this page
  1. How to
  2. WebUPI Reference

webUPI.getUPIId()

Request the user's UPI ID. This can be used for sending payment requests to the user.

Method


async function getUPIId(): GetUPIIdResponse;

Response


interface GetUPIIdResponse {
  upiId: string;
}

Code Example


await webUPI.enable();
const upiId = await webUPI.getUPIId();
console.log(upiId);
PreviouswebUPI.requestPayment()NextwebUPI.getPaymentStatus()

Last updated 1 year ago

đŸ’ģ