Accept M-Pesa payments live with the DarajaPay API
DarajaPay is a developer-friendly payment layer over Safaricom's Daraja API that makes it simple to accept M-Pesa payments in Kenya. Trigger a live STK Push, receive instant payment callbacks, and add no-code M-Pesa Pay buttons in minutes — no backend required.
What you can do with DarajaPay
- M-Pesa Express (STK Push) — send an instant M-Pesa PIN prompt to a customer's phone to authorize a payment.
- Customer-to-Business (C2B) — receive transaction callbacks for PayBill and Buy Goods (Till) payments.
- No-code M-Pesa Pay button generator — create an embeddable "Pay with M-Pesa" button without writing code.
- Interactive Daraja API sandbox — test STK Push in a live playground and copy working code in multiple languages.
- Instant callbacks & developer console — track payment status (pending, paid, failed) in real time.
Frequently asked questions
What is DarajaPay?
DarajaPay is a simplified developer portal and API layer for integrating Safaricom M-Pesa payments using the Daraja API. It handles STK Push, C2B callbacks and no-code payment buttons so developers can accept M-Pesa payments quickly.
How do I integrate M-Pesa STK Push?
Sign in, open the Daraja API playground, trigger a live STK Push to a phone number, then copy the generated code into your app. DarajaPay returns instant callbacks so you know when a payment is paid or failed.
Do I need my own backend to accept M-Pesa payments?
No. DarajaPay can trigger STK Push and deliver payment callbacks without you running a backend server.
Is DarajaPay free to start?
Yes. You can start in the sandbox for free and test your M-Pesa integration before going live.