> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dollarpe.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# QR code integration

> Generate UPI QR codes from the deep link returned in the payin quotation response.

## Generating UPI QR codes

When you create a payin quotation for a UPI payment method, the API response includes a `deep_link` field with all the payment details. Pass this value directly to a QR code library to generate a scannable UPI QR for your user.

See the [sample response](/api-reference-exchange/endpoint/payin/quotation#response-data-deposit-instructions-deep-link) for the payin quotation UPI payload.

<Info>
  Use the `deep_link` exactly as returned. Modifying it may break payment parsing or delay reconciliation.
</Info>

## UPI deep link examples

All major UPI apps follow the same URL scheme:

| App          | Deep link format                                                                         |
| ------------ | ---------------------------------------------------------------------------------------- |
| Paytm        | `paytmmp://pay?pn=MerchantXYZ&pa=merchantxyz@icicibank&am=500.00&tn=PaymentForOrder123`  |
| PhonePe      | `phonepe://pay?pn=MerchantXYZ&pa=merchantxyz@icicibank&am=500.00&tn=PaymentForOrder123`  |
| Google Pay   | `gpay://upi/pay?pn=MerchantXYZ&pa=merchantxyz@icicibank&am=500.00&tn=PaymentForOrder123` |
| BHIM         | `bhim://pay?pn=MerchantXYZ&pa=merchantxyz@icicibank&am=500.00&tn=PaymentForOrder123`     |
| Standard UPI | `upi://pay?pn=MerchantXYZ&pa=merchantxyz@icicibank&am=500.00&tn=PaymentForOrder123`      |

## Live demo

<iframe height="400" style={{ width: "100%" }} scrolling="no" title="UPI QR Code Generator" src="https://codepen.io/Chakravarti-Avinit/embed/yyYNyaV?default-tab=result" frameBorder="no" loading="lazy" allowtransparency="true" allowfullscreen="true" />
