Troubleshooting

"Customer paid but can't connect": the full MikroTik diagnostic

The M-Pesa SMS arrived and the voucher is valid, but the device won't go online. Work these causes in order — the first one fixes most cases.

EB eBillio EngineeringWe build it and run it in production 25 Nov 2026 8 min read
A hand holding a phone showing a mobile-money payment screen

It is the single most common message an operator gets, usually at the worst time: “I paid, I got the M-Pesa SMS, but I still can’t browse.” The instinct is to blame the billing system. Nine times out of ten the money is fine — the problem is further down the chain, and it’s fixable in minutes once you know where to look.

Here is the exact order we work it, from most to least likely. Don’t skip ahead: each step rules out a whole class of causes, and the first one alone resolves most tickets.

1. Rule out the router clock first

This is the fix nobody expects, and it’s the one that catches the most people. A MikroTik without a battery-backed clock loses the time on every reboot. If it then can’t reach an NTP server — because the internet it’s gating is exactly what’s down — it comes back believing it’s the year 1970.

Now the chain breaks in a way that looks impossible. The customer pays, the voucher is valid for an hour, RADIUS hands out the session — and the router immediately compares the session’s start time against its own wrong clock, decides the hour is already up, and disconnects them. The payment is real, the voucher is real, and the customer is still offline.

Check the clock and point it at a reliable NTP source:

# check the current time the router believes it is
/system clock print

# set a reliable NTP source and enable the client
/system ntp client set enabled=yes servers=time.google.com,time.cloudflare.com

If the time was wrong, fix it, have the customer reconnect, and you’re done.

To stop it recurring, enable the NTP client permanently and, on sites with frequent power cuts, consider a router that keeps its clock across reboots. A wrong clock quietly breaks far more than billing — certificates, logs and scheduling all depend on it.

2. Confirm the payment actually reconciled

An M-Pesa SMS means Safaricom took the money. It does not mean your system received the confirmation. Those are two different events: the customer gets the SMS from Safaricom, and separately Safaricom’s Daraja API is supposed to call your server back to confirm. If that callback is delayed or dropped — a flaky link between your server and Safaricom is common — the payment sits in a pending state and no voucher is ever activated.

So before you look at the network, look at the payment. In eBillio, open the voucher and check two things:

  • An M-Pesa transaction (receipt code) is attached to it.
  • Its status reads success, not pending.

If there’s a receipt and the status is success, the money reconciled and the problem is downstream (keep reading). If it’s stuck on pending with no receipt, this is a reconciliation issue, not a device issue — the fix is on the payment side, and no amount of reconnecting will help until the callback lands or is replayed.

Trust is won on the bad day. When a paying customer can’t connect, the operator who can explain exactly why — and show them the receipt reconciled — keeps that subscriber.

3. Read what RADIUS actually replied

If the money is confirmed but the device still won’t come up, the authentication log tells you which half of the system to blame. You’re looking for one of three outcomes:

  1. Access-Accept, then an immediate disconnect → the problem is router-side: a wrong clock (again), an exhausted DHCP pool, or a rate-limit the router can’t apply.
  2. Access-Reject → the problem is the credential: the voucher was already used on another device, it was revoked, or a MAC-binding rule is rejecting this phone.
  3. No reply at all → the router can’t reach RADIUS. Check the link between them and the shared secret on both ends.

That one log line saves you an hour of guessing. An Accept-then-drop and a Reject point at opposite ends of the system; treat them differently.

The “already used” trap

A very common Reject cause on hotspot setups: the voucher was briefly tried on one device, then the real customer tries it on another. If your vouchers are single-device, the second device is correctly rejected. Decide deliberately whether a voucher is one-device or shared, and tell customers — most “it says my code is used” tickets are this.

4. Connected, but “no internet”

Sometimes the session is genuinely up, the device has an IP address, and pages still won’t load. This almost never has anything to do with billing — it’s DNS or the backhaul.

Test it the quick way: from the device, reach a known IP directly.

ping 8.8.8.8

If the ping to 8.8.8.8 works but names don’t resolve, the session is fine and the hotspot is handing out DNS that isn’t answering — fix the DNS the router advertises. If even the IP ping fails, your upstream link is down and no customer on that router can browse, paid or not. That’s a network outage, not a billing fault, and the honest thing is to say so.

The order matters

If you remember nothing else, remember the sequence: clock, then reconciliation, then the RADIUS reply, then IP and DNS. Most operators jump straight to re-issuing vouchers, which fixes nothing and costs money. Each step above eliminates a whole category of cause, so by the time you reach the end you actually understand what happened — and you can tell the customer, which is half of keeping them.

Still stuck after all this?

Post the router model and the RADIUS log line in the operator community — we and other ISPs answer daily.

Ask the community
EB

eBillio Engineering

We build the platform and run it in production

eBillio is billing and M-Pesa reconciliation built exclusively for MikroTik ISPs across Africa. These playbooks come straight from the incidents we debug for operators — the real failure paths, not the happy path.

Frequently asked

The customer paid twice — do I refund one?
Check the buyer's purchase history against your M-Pesa statement. If two successful receipts exist for the same package minutes apart, it's a genuine double-charge and you can refund the duplicate. One SMS and one receipt means they paid once, whatever the device is doing.
Does issuing a new voucher fix a 'paid but offline' case?
Usually not. If the cause is the router clock or a stuck callback, a new voucher hits the same wall and you've now given away free time. Fix the clock or reconcile the payment first, then reuse the original voucher.
How do I stop this happening at all?
Enable the NTP client on every router so the clock survives a reboot, and alert on reconciliation failures so a dropped callback is visible before the customer calls. eBillio watches the Daraja callback path and flags any payment that doesn't reconcile.
It worked yesterday and stopped today — what changed?
Something upstream almost always changed: a power cut reset the router clock, the backhaul flapped, or the link between the router and your RADIUS server dropped. Start with the clock and the router-to-RADIUS path, not the billing system.