Paybill and till payment confirmations (C2B)
JMSURF PAY feature · updated 23 November 2026
Not every customer pays from a prompt. Many still open the M-Pesa menu, choose Lipa na M-Pesa and pay your paybill or till directly. Paybill and till confirmations bring those payments into JMSURF PAY too: Safaricom sends a confirmation for each payment, and it appears in your dashboard and reaches your system by webhook, next to your prompt payments.
What you need
- Your own Safaricom Daraja app for that paybill or till, approved in JMSURF PAY under Daraja Whitelisting.
- The C2B (customer to business) product on that Daraja app.
- Then press Connect on the Confirmations tab. JMSURF PAY registers its confirmation address with Safaricom for your shortcode.
One thing to know
Safaricom keeps the first confirmation address registered for a shortcode. If another system already registered one for your paybill, Safaricom may need to change it before confirmations reach JMSURF PAY.What you get
| Where | What |
|---|---|
| Paybill & till page | Every confirmed payment: amount, M-Pesa receipt, payer, account typed and time. |
| Totals and reports | Confirmed menu payments count in your dashboard totals, without double counting prompt payments. |
| Webhooks | c2b.received to your system for each payment, with the matched payment when there is one. |
Automatic matching
When a prompt from a payment link fails (for example the phone was off), the payment page can show your paybill and an account in the form P plus a number. If the customer pays that account from the M-Pesa menu within 48 hours, the original payment is marked completed and your system receives payment.completed with paidBy: paybill. One order, one record, whichever way it was paid.
Safety
- Only confirmations that come from Safaricom's own network addresses are trusted; anything else is stored as unverified and completes nothing.
- Each M-Pesa receipt is recorded once, even if Safaricom sends it twice.
- The confirmation address contains a long secret token unique to your account.
Start on the Free plan: 1 payment channel, up to KES 50,000 a month, test keys included. Questions? WhatsApp +254 712 504 593.