FluffyBanana
FluffyBanana
31mo
by
Student

Hey, I was curious how does those UPI QR with pre-billed amounts work? Has anyone worked on them?

You know like when the delivery guy shows a qr and it already shows me the amount that I have to pay. I find it really cool but couldn't wrap my head around how it works?

31mo ago
GoofyDonut
GoofyDonut

You can put anything in a QR. In this case it’s a payment link with a UPI transaction ID which is created when the seller requests a new payment. On your side it’s as simple as open that link in a UPI compatible app

FluffyBanana
FluffyBanana
Student
31mo

Thanks, I think I it now. So, now is there a way to create something like this for fun or one has to talk to a bank to get these services?

GoofyDonut
GoofyDonut

A payment QR code for fun? For individuals, you can "request" money via UPI apps. I think some apps allow creation of a link, which you can paste on any QR generators.

To do it at a scale and programatically, you'll need a provider connect (e.g. razor pay/phone pe/paytm/etc.), for which you need a company registration.

FloatingWaffle
FloatingWaffle
31mo

This is the string upi QR code contains:

upi://username@upi?amount=100 Technically upi is a protocol just like http. and may contain multiple parameters such as amount, currency, code expiry time and many more. Where username@upi is receivers I'd,

FluffyBanana
FluffyBanana
Student
31mo

Thanks, I understand it all now. You're amazing.

SparklyBiscuit
SparklyBiscuit
31mo

Simple Answer:

A QR is like a URL. Just like how you can pass query parameters to a URL, you can do that with QRs as well.

In fact, try converting a QR to text and see what happens :)

JazzyDumpling
JazzyDumpling

Razorpay dynamic qr let you do that

Discover more
Curated from across