Standards/m-pesa-qr
M-Pesa QR
Overview
Note on classification. "M-Pesa QR" is not a separate code format. It is the QR feature that M-Pesa operators add to their apps and merchant till stickers. No operator has published an M-Pesa payload format. In Kenya, Safaricom's merchant QR now follows the Central Bank of Kenya's KE-QR Code (KE-QR), which is built on EMVCo MPM 5. In Tanzania, the Bank of Tanzania requires all merchant QR codes to follow TANQR 9. For each market's service, see M-Pesa KE, M-Pesa TZ, M-Pesa LS and M-Pesa DRC.
M-Pesa QR is the scan-to-pay feature of M-Pesa, the mobile-money service Safaricom and Vodafone launched in Kenya in 2007 13. The customer scans the merchant's QR code, the merchant's till or paybill number is filled in for them, and they authorise the payment with their M-Pesa PIN 2. Safaricom added QR scanning for Lipa Na M-PESA payments and agent cash withdrawals in December 2017 1. When KE-QR launched in May 2023, Safaricom was a launch partner 3, 4.
The TRACKING row names Kenya, Tanzania and Ghana. In Ghana, M-Pesa ran under the Vodafone Cash brand 7, 8, and none of the sources fetched for this page describes an M-Pesa-branded QR code there. Ghana's national interoperable QR is GhQR.
History
- 2007. Vodafone and Safaricom launched M-Pesa in Kenya 13.
- 7 December 2015. Vodafone extended M-Pesa to Ghana, its 11th M-Pesa market, "under the 'Vodafone Cash' brand", after a pilot that began in August 2015 7.
- 19 December 2017 (Kenya). An update to the mySafaricom app added QR scanning for Lipa Na M-PESA payments and for cash withdrawals at agents. Safaricom said it was rolling out new Lipa Na M-PESA stickers with QR codes to more than 140,000 agents and 80,000 merchants 1.
- 15 October 2020 (Tanzania). Announcing a fuel-payment partnership with Oryx, Vodacom Tanzania said customers could pay through its "Lipa kwa Simu" service with the M-Pesa App QR code, as well as with bank accounts and other mobile-money wallets 10.
- September 2021. M-Pesa was available in Kenya, Tanzania, Mozambique, the DRC and Lesotho, and in Egypt and Ghana as Vodafone Cash, with 50 million monthly active customers 8.
- 12 August 2022 (Tanzania). The Bank of Tanzania issued the TANQR Code Standard 2022, effective 1 September 2022. Existing merchant QR codes had one year to migrate, and new ones had to comply within six months 9.
- 3 May 2023 (Kenya). The CBK launched the Kenya Quick Response Code Standard. KCB Group, Equity Bank, Co-operative Bank and Safaricom were among the first providers implementing it 3, 4.
Technical specification
There is no M-Pesa-specific symbol or payload specification in the sources. What they do document:
| Aspect | What the sources show |
|---|---|
| Symbol | QR code, scanned with the M-Pesa or Safaricom app, or with the phone camera 1, 2 |
| Static vs dynamic (Kenya) | Static codes fill in the till or paybill number, and the customer types the amount. Dynamic codes fill in every field, amount included 2 |
| Camera scan (Kenya) | Without the app, the camera shows a link that opens M-PESA web checkout at pay.safaricom.co.ke. With My OneApp installed, the app opens with the till number filled in 2 |
| Limits (Kenya) | Standard M-PESA limits apply: KSh 250,000 per transaction and KSh 500,000 per day 2 |
| Kenyan payload | KE-QR v1.0, based on EMVCo MPM v1.1 (Nov 2020) 5. Template 28 carries the domestic PSP merchant identifier under the GUID ke.go.qr. In the spec's worked example, Safaricom is PSP ID 01, written as sub-tag 01 followed by the merchant ID. Template 83 is "Reserved for Safaricom", to be defined by Safaricom's technical team and later moved under template 29 5 |
| Dynamic QR API (Kenya) | Safaricom's Daraja POST /mpesa/qrcode/v1/generate takes MerchantName, RefNo, Amount, TrxCode, CPI (credit party identifier) and Size in pixels. TrxCode is one of BG (Buy Goods), WA (withdraw cash at an agent till), PB (Paybill), SM (send money to a mobile number) or SB (send to business). The response returns the QR code as base64 image data, so the payload inside the image isn't documented 6 |
| Tanzanian payload | Merchant QR codes must conform to TANQR Code Standard 2022 9. See TANQR |
| Lesotho | Merchants can generate a QR code in the M-Pesa Business App with the till number and amount. Till stickers also carry a QR code, and the customer pays by scanning it with the consumer app and entering a PIN 11 |
Use cases
- Merchant payments (Buy Goods / Lipa Na M-PESA). Customers pay without typing a till number. Static and dynamic codes are both offered, and Scan to Pay works in shops and for online shopping 1, 2.
- Cash withdrawal at agents. Kenya added QR-based withdrawals in 2017 1. In Lesotho, merchants withdraw at an agent by scanning the QR code on the agent's till display 11. Daraja's
WAcode generates a withdrawal QR 6. - Paybill, send money and send to business. The Dynamic QR API also generates codes for paybill numbers, mobile numbers and business numbers 6.
- Fuel retail (Tanzania). Lipa kwa Simu with M-Pesa App QR was offered at 52 Oryx fuel stations from October 2020 10.
- Point-of-sale software. Odoo's
pos_safaricommodule calls the Daraja QR endpoint to "Generate QR Code for Lipa na M-PESA" at the till 14. - Ethiopia. The corpus country report lists EthQR code payments among M-Pesa's features there Ethiopia report. See EthSwitch QR.
Uptake has limits. An IFC survey in Tanzania found that most smartphone users had never used a QR code to pay, and that the merchant payments recorded were made over USSD 12.
Implementations & ecosystem
No open-source decoder specific to M-Pesa was found. In Kenya the codes are KE-QR/EMVCo payloads, which any EMVCo MPM parser can read (see KE-QR Code). The open-source code that exists wraps Safaricom's Dynamic QR API. The GitHub figures are from the GitHub API on 19 Oct 2026:
| Project | Language | Stars | Last push | What it does |
|---|---|---|---|---|
odoo/odoo (addons/pos_safaricom) |
Python | 55,156 | Oct 2026 | Point-of-sale payment method that calls api.safaricom.co.ke/mpesa/qrcode/v1/generate and displays the returned QRCode 14 |
| Byte-Barn/mpesakit | Python | 39 | Oct 2026 | M-Pesa SDK with a dynamic_qr service |
| c12i/mpesa-rust | Rust | 44 | Jan 2026 | M-Pesa API SDK with a dynamic_qr service |
| starnerz/laravel-daraja | PHP | 7 | Oct 2026 | Laravel wrapper for the Daraja APIs, QR included |
Operators: Safaricom in Kenya 2, Vodacom Tanzania 10 and Vodacom Lesotho 11.
Fun facts
- A national standard with a template for one company. KE-QR reserves EMV template 83 "for Safaricom PLC", to be defined by Safaricom's technical team 5.
- The 2017 sticker swap. Moving Kenya to QR meant new stickers for more than 140,000 agents and 80,000 Lipa Na M-PESA merchants 1.
Comparison
| M-Pesa QR (Kenya, today) | KE-QR Code | TANQR | GhQR | |
|---|---|---|---|---|
| What it is | Safaricom's merchant QR and app feature | CBK national standard | BoT national standard | Ghana's national interoperable QR |
| Payload | KE-QR (EMVCo MPM): template 28 with PSP ID 01, plus template 83 5 | EMVCo MPM v1.1 profile 5 | TANQR Code Standard 2022 9 | See GhQR |
| Scope | Safaricom tills and paybills | All CBK-regulated PSPs and banks 4 | All FSPs in Tanzania 9 | All providers in Ghana |
Choose by market: a Kenyan integrator generates a KE-QR code, through Daraja for Safaricom merchants 6. In Tanzania, codes must follow TANQR 9. "M-Pesa QR" is the operator's feature on top of these standards, not an alternative to them.
Status
Active in Kenya: Safaricom's Scan to Pay FAQ was updated in August 2026 2. In Tanzania, merchant QR codes had to migrate to TANQR by August 2023 under the BoT circular 9. In Lesotho, the Business App offers QR 11. In Ghana, no M-Pesa-branded QR was found in the sources. The service there ran as Vodafone Cash 7, 8. Country context: Kenya report, Tanzania, United Republic of report, Lesotho report.
Sources
- 1 Safaricom adds QR scanning for Lipa Na M-PESA — Techweez, accessed 2026
- 2 Scan to Pay FAQ — Safaricom, accessed 2026
- 3 Safaricom launches QR payment method — Tuko, accessed 2026
- 4 CBK launches national QR payments standard — NFCW, accessed 2026
- 5 Kenya Quick Response Code Standard v1.0 — Central Bank of Kenya, accessed 2026
- 6 Daraja Dynamic QR API — Safaricom (docs copy on GitHub), accessed 2026
- 7 Vodafone launches M-Pesa in Ghana — Vodafone, accessed 2026
- 8 M-Pesa reaches 50 million customers — Ghanaian Times, accessed 2026
- 9 TANQR Code Standard 2022 circular — Bank of Tanzania, accessed 2026
- 10 Vodacom Tanzania and Oryx partnership — ITWeb, accessed 2026
- 11 M-Pesa Business App — Vodacom Lesotho, accessed 2026
- 12 Evolution of the Mobile Money Payment Market in Tanzania — IFC, accessed 2026
- 13 M-Pesa — Wikipedia, accessed 2026
- 14 pos_safaricom payment method — Odoo, accessed 2026
- Kenya report Kenya payments overview
- Tanzania, United Republic of report Tanzania payments overview
- Lesotho report Lesotho payments overview
- Ethiopia report Ethiopia payments overview
Deployments
Countries whose payments overview mentions this standard: