Objective :
- implement QR codes generation and function for transfer operations between merchants and customers and P2P.
There are different types of QRs for the ewallet
- when desigining the QR, we need to map the random generated qrId to the merchant or user id, to prevent malicious attacks. Also backend will process when receive the qrId.
- second is the QR should have an expiry time, for payments. but for merchants to display meaning a receive money QR, there should be no time limit.
Use Cases
1. Merchant Payment QR (P2M)
Purpose: Pay a business
- You scan merchant QR
- Money goes user → merchant
- Often supports:
- fixed amount QR
- dynamic amount QR (entered at checkout)
2. P2P Transfer QR (Person-to-Person)
Purpose: Send money to another user
- You scan friend’s QR
- user → user transfer
- Usually tied to:
- userId / walletId
- phone number alias