Online checkout & apps
M-PESA checkout for shops, booking sites and apps
Online shops, booking systems, delivery and SaaS apps: one POST prompts the customer's phone, a signed webhook tells your server it is paid, and a lookup by your own reference answers any time. Your shortcode, your settlement, none of the Daraja plumbing.
Re-sending the same reference never prompts the customer twice.
- M-PESA prompt
- 0712 ••• 678
- Amount
- KES 2,340
- Status
- Confirmed
Three steps, no Daraja code
Prompt at checkout
POST the account, phone, amount and your order reference. A timed-out request can be retried with the same reference without a second prompt.
Told when it's paid
A signed webhook with your reference and the receipt, retried for about 20 hours if your server is down.
Or ask
GET the transaction by your reference whenever you need the truth: settled, failed, or still waiting.
What it runs on
Questions we hear
Which languages are supported?
Any that can make an HTTPS request. The API docs show every call in curl, Node, PHP, Python, Go, Rust, Java, C# and VB.NET.
Can I test before going live?
Yes. Add a sandbox account with Daraja test credentials, build against it, then move the same account to production.