> For the complete documentation index, see [llms.txt](https://ninjapay.gitbook.io/webupi-protocol/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ninjapay.gitbook.io/webupi-protocol/how-to/webupi-reference/webupi.getpaymentstatus.md).

# webUPI.getPaymentStatus()

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

#### **Method**

```jsx

async function getPaymentStatus(transactionId: string): GetPaymentStatusResponse;

```

#### **Parameters**

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

#### **Response**

```jsx

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

```

#### **Code Example**

```jsx

await webUPI.enable();
const status = await webUPI.getPaymentStatus("transactionId123");
console.log(status);
```
