> 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.requestpayment.md).

# webUPI.requestPayment()

Request that the user creates a payment request to be used by the web app. This will return a UPI URI.

#### **Method**

```jsx

async function requestPayment(args: RequestPaymentArgs): RequestPaymentResponse;

```

#### **Parameters**

```jsx

interface RequestPaymentArgs {
  amount: string | number;
  payeeVPA?: string; // If web app wants the user to create from a specific UPI ID account.
  transactionNote?: string;
}

```

#### **Response**

```jsx

interface RequestPaymentResponse {
  upiUri: string;
}

```

#### **Code Example**

```jsx

await webUPI.enable();
const paymentRequest = await webUPI.requestPayment({
  payeeVPA: 'yourvpa@bank',
  amount: 1000,
  transactionNote: 'Payment for services'
});
```
