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);

Last updated