UPI QR codes are everywhere in India, on shop counters, auto-rickshaws, delivery bags and invoices. Most people scan them dozens of times a month without thinking about what is inside. It is worth thinking about once, because it explains both how to make your own and how the most common UPI scam works.
What the code actually contains
A UPI QR code is not a special payment object. It is a short piece of text, a link in a format defined by NPCI, the body that runs UPI, printed as a QR code. A typical one reads:
upi://pay?pa=shop@okaxis&pn=Sharma%20General%20Store&cu=INR
Each part has one job:
| Field | Meaning |
|---|---|
pa |
Payee address: the UPI ID the money goes to |
pn |
Payee name: what the payer's app displays |
am |
Amount, optional: if present, it is filled in for the payer |
cu |
Currency: always INR |
tn |
Transaction note, optional: for example an invoice number |
That is all. There is no bank account number, no balance and no secret in it. When someone scans it, their UPI app reads the link, shows your name and the amount, and asks for their own UPI PIN. Nothing happens until they enter it.
The rule that stops the most common scam
Because a UPI code is a request to pay the address inside it, scanning one always sends money from the person scanning. There is no such thing as scanning a code to receive money.
This is the basis of the scam that targets people selling things online. A "buyer" offers to pay, then sends a QR code or a payment request and says you must scan it, or enter your PIN, to receive the money. Doing so pays them. Banks and NPCI repeat the same rule for this reason: you never need to scan a code or enter your UPI PIN to receive a payment.
Making a code for your shop or business
Your bank or UPI app can show a QR code for your account, and many merchant apps print one for you. Making your own is useful when you want a cleaner print, a code at a specific size for a counter stand, or a code with a fixed amount for one invoice.
The QR code generator has a UPI payment option. You enter:
- Your UPI ID, exactly as your app shows it, for example
9876543210@yblorshop@okaxis. The tool checks that it has the right shape. - The name payers should see, usually your shop or business name.
- An amount, only if the code is for one payment. Leave it empty for a counter code, so each customer enters what they owe.
- A note, if useful, such as an invoice number, which appears in the payer's transaction history.
Raise the error-correction level to Q or H if the code will be printed small or laminated, and print it at least 3 cm wide so older phone cameras can read it from a normal distance.
Static and dynamic codes
A code printed once and used by everyone is a static code: the same link, every time, with no amount. Large shops and online checkouts often use dynamic codes, generated for each payment with the amount and an order reference already filled in, so the payment can be matched to the bill automatically.
A code you make with a fixed amount and an invoice number in the note is a simple version of that idea: print it on the invoice, and the customer pays exactly the right amount with your reference attached. For invoices that also need the amount written out, the number to words tool writes it in lakh and crore with rupees and paise.
When a payment does not arrive
If a customer shows a successful payment and you did not receive it, compare the UPI ID on their screen with yours before anything else. A mismatch means the code they scanned was not yours. If the IDs match, the reference number on their screen is what your bank will ask for.