Safaricom Daraja API

M-Pesa billing integration
that activates instantly

M-Pesa is how Kenyan subscribers pay for internet. Iterative Billing integrates with Safaricom’s Daraja API for Paybill, Till and STK Push, matches every payment to the right subscriber automatically, and turns the payment into a network action (activation, renewal or top-up) in seconds. No statement downloads, no manual matching.

Reviewed within one business day · 3-day trial for approved networks · Unlimited routers

Iterative Billing wallet screen with an M-Pesa top-up button and renewal details.

What manual M-Pesa reconciliation costs you

Unidentified deposits that never get applied to an account.

Payments are matched by phone number or account reference at the moment the callback arrives, and exceptions are flagged for review instead of lost.

Subscribers who pay at 11 pm and wait until morning to be reconnected.

Activation is automatic and around the clock: the callback restores the session and sends an SMS receipt.

Switching payment providers means rebuilding the billing system.

M-Pesa, KopoKopo, SasaPay, Flutterwave, Paystack and Pesapal are all supported side by side, with the same automatic reconciliation.

Every M-Pesa flow your subscribers use

Paybill with account reference

Subscribers pay your Paybill with their account number; reconciliation is exact.

Till Number (Buy Goods)

Simpler setup for smaller ISPs; matched by the paying phone number.

STK Push

Send the payment prompt to the subscriber’s phone from the portal or the dashboard.

Instant activation

A confirmed payment creates or re-enables the PPPoE or hotspot session and sends the SMS receipt.

Callback validation

Callback URL configuration, security validation and transaction logging handled for you.

Collections reporting

Daily collections, outstanding balances and per-gateway breakdowns in the dashboard and the mobile app.

See the full list on the features page.

Live in three steps

  1. 1

    Register on Daraja

    Get your shortcode credentials from the Safaricom developer portal.

  2. 2

    Paste the credentials

    Enter them in the dashboard; callback URLs are set up for you.

  3. 3

    Take the first payment

    Test with a real STK Push. Watch the subscriber activate and receive their SMS.

Pay for the network you run

Billed in Kenyan shillings. From 1 October 2026. Routers and hotspot sites are not metered.

Caps and estimator
PPPoE and Static IP

KSh 15 per active customer a month

Never more than KSh 7,000 a month up to 1,000 customers. The cap is reached at 467 customers, so customers 468 to 1,000 add nothing to your bill.

Hotspot

2% of revenue you actually collect

Never more than KSh 3,000 a month. Failed payments, refunds and reversals are never counted.

Monthly minimum

KSh 1,000

Applied once, to the total of both meters, never on top. Routers and hotspot sites are not metered.

Kenyan networks are billed in shillings. Outside Kenya: $0.135 per customer (max $63), 2% of hotspot (max $27), $9 minimum.

Questions operators ask

Should I use a Paybill or a Till Number for ISP billing?

Paybill lets the subscriber include an account number, which makes automatic reconciliation exact and is better for larger operations. Till Numbers are simpler to obtain and work well for smaller ISPs, matching payments by phone number. Both are supported.

How fast is activation after an M-Pesa payment?

Safaricom sends the callback in real time; the platform matches the payment and activates the subscriber typically within seconds, then confirms by SMS.

Do you support STK Push?

Yes. STK Push can be triggered from the captive portal, the customer portal or the operator dashboard.

What other payment gateways are integrated?

KopoKopo, SasaPay, Flutterwave, Paystack and Pesapal, alongside M-Pesa. All support automatic reconciliation.

Do I need a developer to set this up?

No. You register your shortcode on Daraja, then paste the credentials into the dashboard. Callback configuration and validation are handled by the platform, and support is available on WhatsApp.

Make M-Pesa your best employee

Once approved, link your Paybill or Till in the 3-day trial and take your first automatic payment the same day.

Also on your phone

Download on the App StoreGet it on Google Play