M-Pesa STK Push Security: Stop Your Checkout Sending Unwanted Prompts
Safaricom has warned customers about unexpected M-Pesa payment prompts. Here is how a business can make sure its own STK Push checkout cannot be abused.

If your website or app takes M-Pesa payments, the PIN prompt your customer sees is sent in your business's name. In November 2026 Safaricom warned customers again not to approve payment prompts they did not start, and explained publicly why a customer can receive a request they never asked for. Customers are being told to decline anything unexpected. That makes it important that your own checkout can never be the source of a prompt nobody asked for.
The short answer: only send a prompt after a real customer action on a real order, limit how often any phone number can be prompted, keep your payment credentials on your server, and confirm payments from Safaricom's result rather than from the customer's browser. The rest of this article explains why and how, in plain terms.
- An STK Push prompt carries your business name, so an abused checkout damages trust in you, not only in M-Pesa.
- Anyone who can make your server request a prompt can send prompts to any phone number. Treat that action as sensitive.
- Limit prompts per phone number, per order and per visitor, and never retry automatically when a customer cancels.
- Keep Daraja credentials on the server only, and mark an order as paid only from Safaricom's confirmed result.
- Tell customers on the checkout page exactly what prompt to expect, so they can tell your request from a fake one.
What Safaricom said about unexpected payment prompts
As of 30 November 2026, this is what has been publicly reported. On 19 November 2026 Safaricom posted a warning on X telling customers not to accept any payment request they had not initiated, and reminded them to pause and check before entering their PIN. K24 Digital reported that Safaricom said scammers could use unexpected prompts to trick people into authorising payments they never started.
On 30 November 2026 People Daily reported Safaricom's reply to a customer who received a payment request at 5:41 am that he had not started. Safaricom said the notification came from a payment demand by an M-Pesa Express merchant, that a request can arrive by mistake when someone enters the wrong phone number, and that M-Pesa accounts cannot be accessed remotely. It told the customer not to enter their PIN. Earlier, in July 2026, Safaricom's awareness campaign described the PIN as the customer's final line of defence and asked customers to confirm the business name on a prompt before paying. The reports do not say which business sent the request, and we do not speculate here.
The message to customers is simple: if you did not start it, do not enter your PIN. The message for businesses is less obvious, and it is the subject of the rest of this article.
How an STK Push payment works
M-Pesa Express, often called STK Push or Lipa na M-Pesa Online, is offered to businesses through Safaricom's Daraja developer platform. When a customer chooses to pay, your server sends Safaricom a request containing your business number, the amount, the customer's phone number and a reference. Safaricom shows a prompt on that phone. If the customer enters their PIN, the money moves and Safaricom sends the result to a callback address on your server.
Notice what this means. The customer's phone number is just a value your server passes on. If your system will accept any number from any visitor and immediately request a prompt, then anyone can use your checkout to send prompts, in your name, to any Safaricom number. They do not need to steal anything. They only need to use your payment button in a way you did not expect.
Security specialists call this abuse of a sensitive business flow. The OWASP API Security Top 10, a widely used reference for web and app back ends, lists it as its own risk category: a feature that works exactly as built but is used at a scale or in a way the business never intended.
Why this matters for your business
Unwanted prompts in your name hurt you in several ways. Customers who receive a request they did not expect may decide your business is involved in fraud. Real customers, now trained to cancel anything unusual, may cancel your genuine prompts too. Your support team spends time on complaints, and your payment records fill up with failed requests that hide real problems.
There is also a data side. A customer's phone number is personal data under Kenya's Data Protection Act, 2019. If your system stores every number typed into a payment form, keeps it indefinitely or exposes it in logs, you are holding more personal data than you need. Take legal advice on your specific obligations, but as a rule, collect only what a payment needs and protect what you keep.
Which checkout designs carry the most risk?
How exposed you are depends mostly on who can trigger a prompt, and how easily. This table compares common ways Kenyan sites and apps take M-Pesa payments.
| Option | Good fit | Trade-off |
|---|---|---|
| Public form: type any phone number, press Pay | Quick to build and easy for first-time buyers. | High. Without limits, anyone or any bot can send prompts to any number in your name. |
| Prompt tied to a real order or invoice | Shops, bookings and invoices where an order exists before payment. | Lower. Each order can be prompted a small number of times, and the amount comes from your records. |
| Logged-in customer with a verified phone number | Apps and portals with accounts, such as subscriptions or school fees. | Lowest of the STK options. Prompts only go to a number the customer has already confirmed. |
| Paybill or Till number with a reference, no prompt | Low-volume sales, or as a fallback when prompts fail. | No prompt to abuse, but customers type details themselves and you must match payments to orders. |
| Payment provider or aggregator checkout | Businesses that prefer not to integrate with Daraja directly. | Depends on the provider. Ask how they limit prompts and who is responsible if their checkout is abused. |
A practical checklist to secure your STK Push checkout

These steps are roughly in the order we would take them. Most are small changes for a developer who knows your system, and none require changing payment provider.
1. Only send a prompt for a real order
Create the order, booking or invoice first, then request the prompt for that order. Your server should take the amount from its own records, never from a value sent by the browser or app. That stops someone changing the price and gives every prompt a clear reason to exist.
2. Limit how often a number can be prompted
Set limits on your server: a small number of prompts per phone number in a short period, a few attempts per order, and a cap per visitor or device. When a limit is reached, show a polite message and offer the Paybill or Till option instead. OWASP's guidance on unrestricted resource consumption and sensitive business flows recommends controls of this kind for actions that cost money or affect other people.
3. Confirm the phone number before you prompt it
Check that the number is a valid Kenyan mobile number, show it back to the customer and ask them to confirm it before you send anything. For returning customers, use a number they have already verified. This also reduces the honest mistake Safaricom mentioned, where a mistyped number sends a prompt to a stranger.
4. Make automated abuse harder
Public payment forms attract bots. A light bot check on the pay button, blocking obviously automated traffic, and requiring a session that has visited your checkout normally all raise the effort needed to abuse it. Keep these checks gentle for real customers on slow mobile connections.
5. Keep payment credentials on the server
Your Daraja consumer key, secret and passkey must live only on your server, never inside a mobile app, website code or a shared document. Limit who can see them, and change them when a developer or agency that had access stops working with you. Anyone with these credentials can request prompts as your business without touching your checkout at all.
6. Make your prompt easy to recognise
Use a clear account reference, such as your shop name and order number, so the customer can match the prompt to what they just did. On the checkout page, say what is about to happen: the amount, the business name they will see, and a reminder to enter their PIN only if they started this payment. This supports Safaricom's own advice rather than working against it.
7. Handle results carefully
If a customer cancels or does not respond, do not send another prompt automatically. Let them choose to try again. Mark an order as paid only when Safaricom's result reaches your callback, or when you confirm the status with Safaricom yourself, never because the browser says so. Record each result once, so a repeated notification cannot mark one payment twice.
8. Watch the numbers
Track how many prompts you send each hour, how many are cancelled or time out, and how many go to numbers that never complete a payment. A sudden rise is often the first sign that someone has found your checkout. Set an alert, and decide in advance who can switch STK Push off and fall back to Paybill while you investigate.
Questions to ask your developer or payment provider
If someone else built or runs your M-Pesa checkout, these questions will tell you quickly where you stand. Can a visitor trigger a prompt without an order? What limits exist per phone number and per order? Where are the Daraja credentials stored, and who can see them? How does the system decide an order is paid? What happens when a customer cancels? Who gets alerted if prompt volumes jump? Clear, specific answers are a good sign. Vague ones mean the checkout deserves a closer look.
Getting help
Payment flows sit at the centre of a business system, alongside orders, stock and customer records. Our business systems service brings orders, stock, customer records and reports into one shared system and connects the tools your team already relies on. If you already have a checkout and want a second opinion on how it handles prompts, credentials and payment confirmation, our technical consulting service can review it and give you clear priorities.
You do not need to wait for a customer complaint. Contact Alphonix with a short description of how you take M-Pesa payments today, and we will suggest a practical next step.
How we prepared this guide
Written by Alphonix. It is based on Safaricom's public customer warnings and replies of July and November 2026 as reported by K24 Digital and People Daily, the OWASP API Security Top 10 (2023), Kenya's Data Protection Act, 2019 and general practice for payment integrations. Facts were checked on 1 December 2026. Safaricom has not published a full explanation of every reported case, and this article does not claim to know the cause. It is practical guidance, not legal advice and not an independent ranking of payment providers.
Facts reviewed
- K24 Digital: What to do when an unexpected M-Pesa PIN prompt appears on your phone
- People Daily: Safaricom warns M-PESA users against approving unknown payment prompts
- People Daily: Safaricom explains why M-Pesa customers receive unexpected payment requests
- Safaricom Daraja developer portal
- OWASP API Security Top 10 2023: API6 Unrestricted Access to Sensitive Business Flows
- OWASP API Security Top 10 2023: API4 Unrestricted Resource Consumption
- Kenya Law: Data Protection Act, 2019 (No. 24 of 2019)


