Payment integration for apps, websites and systems in Kenya

M-Pesa first, because that is how Kenya pays. Cards and Airtel Money through a Kenyan gateway when your customers need them. One checkout, one set of records, and a statement that matches.

KEPAS adds payments to apps, websites and business systems anywhere in Kenya. Most of that work is M-Pesa on Safaricom's Daraja API, which we run every day for our own products through Paybill 4052037. When your customers also pay by card or Airtel Money, we add a Kenyan payment gateway next to M-Pesa, so every method lands in the same records and the same statement.

Chat on WhatsApp Send the details by form

What we integrate

M-Pesa, direct on the Daraja API
STK Push, Paybill and Till payments, B2C payouts and the callbacks that make them reliable, on your own shortcode with no gateway fee. Read how we integrate M-Pesa.
Card payments through a gateway
Visa and Mastercard through a Kenyan gateway such as Pesapal, IntaSend, Flutterwave or DPO. The gateway hosts the card form, so card numbers never reach your server.
Airtel Money
Through the same gateway, so an Airtel customer gets a prompt on their phone the way an M-Pesa customer does, and the payment lands in the same records.
Checkout and payment pages
A pay button in your app, a payment link you send on WhatsApp, or a hosted page for invoices. The customer picks M-Pesa, card or Airtel Money and your system learns the result at once.
Receipts, records and reconciliation
Every payment is stored once with its reference, the customer gets a receipt, and a daily match against the M-Pesa statement or the gateway settlement report shows anything missing.
Refunds and failed payments
Reversals on M-Pesa, refunds through the gateway, and clear states in your system, so a failed or cancelled payment is never counted as paid.

Where it goes to work

Direct M-Pesa or a payment gateway

The first decision on every payment project. Here is how the two compare in Kenya today.

M-Pesa on your Paybill or TillPayment gateway
MethodsM-Pesa onlyM-Pesa, cards and Airtel Money, some add bank transfers
FeesNo API fee. Only the normal M-Pesa tariff on your shortcodeA share of each payment, usually around three per cent, plus the M-Pesa tariff
SettlementMoney lands in your M-Pesa business account at onceThe gateway settles to your bank, usually within a few days
SetupYour own Paybill or Till and the Daraja Go-LiveAn account with the gateway, your registration papers and KRA PIN, then API keys
Best forSchools, rent, SACCOs and shops whose customers pay by M-PesaOnline shops and services with card or foreign customers

Many clients start with direct M-Pesa and add a gateway later for cards. We keep the two apart in the code, so adding one never means rewriting the other.

Why ask KEPAS

Nelson Lemein, founder of KEPAS
Nelson Lemein runs the KEPAS Paybill and wrote daraja-js.
Payments are our daily work, not a side job
Paybill 4052037 collects rent for landlords on KodiSap. Wabi holds a client's M-Pesa payment until the job is done and pays the worker after. Both run on code we wrote and watch every day.
We wrote the SDK other developers use
daraja-js is our open source Node.js and TypeScript SDK for Daraja, published on npm as @kepas/daraja-js under the Apache 2.0 licence. Each check in it is a bug we hit with real money and now stop before it reaches you.
Your records will match your statement
Every callback is verified and stored before it is processed, and payments without a callback are pulled in afterwards, so the month-end match takes minutes instead of days.
We have written it all down
Read Adding M-Pesa to your app, what they don't tell you before you call us.

How a payment integration goes

  1. A short call. We look at your app or system, how your customers pay today and what a payment should trigger. You get a written quote and dates.
  2. Accounts. Paybill or Till and the Daraja app for M-Pesa. A gateway account with its documents when you need cards or Airtel Money. We help with the forms.
  3. Build and test. We build against the sandboxes, then test live with small real amounts on your own accounts.
  4. Go live. We watch the first days of real payments, then hand over the code, the credentials and a short guide. The code is yours.

What it costs

Adding M-Pesa to a website, app or system you already have costs between KSh 20,000 and KSh 60,000, quoted in writing after the first call. Adding a card gateway next to it is similar work on our side, plus the gateway's own onboarding, which the gateway does with you.

A new app with payments, offline sync and push notifications costs between KSh 150,000 and KSh 500,000. Websites start at KSh 30,000 on our pricing page. Gateways take their share of each payment and M-Pesa charges its normal tariff. Neither of those comes to us, and the quote we give is the price.

Payment integration questions

Which payment gateway should I use in Kenya?
The one whose fees, settlement time and payment methods fit your customers. Pesapal, IntaSend, Flutterwave and DPO all take cards and M-Pesa. We compare them with you on the first call, then you pick.
Do I need my own Paybill or Till?
For direct M-Pesa, yes, and we guide you through the Safaricom application. A gateway can collect M-Pesa on its own shortcode and settle to your bank, so it is the quicker start when you have no shortcode yet.
Can I take card payments without a registered business?
Gateways in Kenya ask for registration papers and a KRA PIN before they open a card account. A sole proprietor with a registered business name can apply.
Is it safe to take cards on my website?
Yes, when the card form is hosted by the gateway. Card numbers never reach your server, and the card security rules stay with the gateway, not with you.
How do refunds work?
M-Pesa payments are reversed through the Daraja reversal API or by Safaricom on request. Gateway payments are refunded from the gateway dashboard or its API. Your system marks the payment refunded either way.
What happens when a payment fails or the customer cancels?
Every attempt comes back with a result. Your system records it as failed or cancelled, never as paid, and the customer can try again or pick another method.
Can you integrate into a system I already have?
Yes. Most of our payment work is adding M-Pesa or a gateway to an app, website or system that already exists. If it has no API we add a small service beside it that receives the callbacks and writes the records.
Do you work outside Nairobi?
Yes. We work with clients anywhere in Kenya over WhatsApp, calls and screen shares, and we visit when the project needs it. Our office is in Loitokitok, Kajiado County.

Tell us how your customers pay today

Send a line about your app or system, whether you have a Paybill or Till, and whether you need cards. We reply with questions, then a written quote.

WhatsApp +254 741 642 093 contact@kepas.co.ke