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