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.getPaymentStatus()

Check the status of a particular payment using the transaction ID.

Method


async function getPaymentStatus(transactionId: string): GetPaymentStatusResponse;

Parameters

transactionId: string // the transaction ID of the payment.

Response


interface GetPaymentStatusResponse {
  status: string; // approved, declined, pending
}

Code Example


await webUPI.enable();
const status = await webUPI.getPaymentStatus("transactionId123");
console.log(status);
PreviouswebUPI.getUPIId()NextError Handling in WebUPI

Last updated 1 year ago

đŸ’ģ