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