Generating UPI QR Codes
This guide explains how to generate a UPI QR code, enabling a smooth payment experience for users. By leveraging UPI deep linking, DollarPe delivers a frictionless payment gateway ideal for businesses and developers seeking fast, reliable transactions. When you create a payin quotation, the API response includes adeep_link field containing all the necessary payment details which you use directly to generate the QR code.
To generate the QR, simply use the deep_link value provided in the payin creation response. You can refer to the code snippets below for implementation.
Here is a sample response when a payin order is created for UPI.
UPI Deep Link Examples
Here are some examples of UPI deep links for various popular UPI-enabled apps:-
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
We strongly recommend partners always use the exact
deep_link URL from the payin quotation to generate the QR code, without making any modifications.Using the UPI deep_link directly from the payin quotation ensures seamless payments for your users and enables faster reconciliation for your business.
