Every time I demo, and want to transact from my phone wallet, I create a QR code in another browser tab.
That's a pain in the ass and does NOT make for a nice UX, nor for a good demo!
Super simple solution
We make an endpoint GET /qrcode?data=anykindofstring. Whatever you post there, will be ran thru a function generating qr codes.
When the clent gets a 402, it will render the payment prompt. In the DOM rendered will be an <image src="api.getmomona.com/qrcode?data=${paymentData.address}>.
The image rendered will be the qr code and you can make a mobile payment super easy
Every time I demo, and want to transact from my phone wallet, I create a QR code in another browser tab.
That's a pain in the ass and does NOT make for a nice UX, nor for a good demo!
Super simple solution
GET /qrcode?data=anykindofstring
. Whatever you post there, will be ran thru a function generating qr codes.402
, it will render the payment prompt. In the DOM rendered will be an<image src="api.getmomona.com/qrcode?data=${paymentData.address}>
.