How M-Pesa STK Push Works — A Plain-English Guide for Business Owners

c
ceofounder
2 min read 2063 views
How M-Pesa STK Push Works — A Plain-English Guide for Business Owners
M Pesa Payments

What is STK Push?

STK Push, formally called Lipa Na M Pesa Online, is Safaricom's API that allows businesses to initiate a payment request directly from a website or app to a customer's phone.

The customer receives a pop up prompt asking them to enter their M Pesa PIN, and the payment is processed instantly.

You have experienced this dozens of times

STK Push is already part of daily life in Kenya. You have used it without thinking about the name.

  • Everyday example Paying for an Uber ride
  • Everyday example Topping up a KPLC token online
  • Everyday example Paying school fees through a web portal

That seamless experience is STK Push. The site asks, the phone prompts, the customer enters a PIN, and the payment clears in seconds.

Why does it matter for your business?

The payment options you accept decide how many customers can actually finish a purchase. In Kenya, those numbers are not close.

Payment reach in Kenya

What customers can actually use

Smartphone users on M Pesa Over 70%
Card penetration Below 20%

If your online shop only accepts cards, you are turning away the majority of your potential customers before they even reach checkout.

STK Push removes that barrier entirely. Any customer with a Safaricom line and M Pesa balance can pay on your website in under 30 seconds. No card, no bank account, no extra apps.

The technical flow, simplified

Here is what happens behind the scenes when a customer pays on a Stonehenge KE e commerce website. Seven steps, and most of them happen in under half a minute.

The flow

From checkout to confirmed order

  1. Customer enters their Safaricom number at checkout.
  2. Our server sends a payment request to Safaricom's Daraja API.
  3. Safaricom sends an STK Push prompt to the customer's phone.
  4. Customer enters their M Pesa PIN.
  5. Safaricom confirms the payment to our server via a callback.
  6. The order is confirmed and the customer sees a success page.
  7. Both the customer and merchant receive M Pesa confirmation SMS.
The callback in step five is the important one. It is what tells your store that money actually arrived, rather than just that a customer said they would pay.

What do you need as a business owner?

Before any code is written, you need one thing from Safaricom: a business payment number.

Your starting point

One of these two numbers

Retail Business Till Number For shops selling physical products directly to customers.
Services Paybill Number For services, invoicing and account based collections.

If you do not have one, Safaricom's business team can register you. The process takes approximately 5 to 7 business days.

Who handles what

You do not need to understand the API. That is our job. But there are a few things only you can do.

Your side

What only you can handle

  • Apply for and obtain your Till or Paybill number
  • Keep your Safaricom business details up to date
  • Confirm which amounts and products are payable online
  • Decide how refunds and failed payments are handled
Our side

What we take care of

  • Daraja API integration and credentials setup
  • STK Push trigger from your checkout page
  • Secure callback handling and order confirmation
  • Success, failure and timeout states for the customer
Once you have your credentials, we handle all the technical integration. You do not need to understand the API.

Why this matters more than a card checkout

A customer without a card cannot buy from a card only store, no matter how good the product page is. Every abandoned cart caused by a missing payment method is a sale that was never really available.

  • Fewer steps between interest and payment
  • No card details to type on a small screen
  • No redirect to a separate payment page
  • Confirmation the store can verify automatically
  • A receipt the customer already recognises
The best payment method is the one your customer already trusts and already uses every day. In Kenya, that is M Pesa.

Ready to accept M Pesa on your website?

Stonehenge Digital builds e commerce checkouts with M Pesa STK Push wired in, from the first prompt on the phone to the confirmed order on your dashboard.

Explore the E-Commerce Website with M Pesa →
Share Written by ceofounder

Interested in E-Commerce Website with M-Pesa?

Let's build this for your business

Sell to any Kenyan with a phone. Full online shop with Safaricom STK Push payment — no card needed.

11 Comments

H

Hellen Nyambura

06 Apr 2026

We are a restaurant. Delivery payments via STK Push reduced cash handling.

J

Joseph Ngugi

06 Apr 2026

Stonehenge integrated STK Push for our e-commerce site. Best decision ever.

E

Esther Muthoni

06 Apr 2026

The M-Pesa confirmation SMS from both sides builds trust.

F

Florence Ndanu

06 Apr 2026

We are a laundry business. Online payment via STK Push increased prepaid orders.

C

Chris Ayienda

06 Apr 2026

The seamless experience is why I prefer STK Push over bank transfers.

M

Margaret Nthenya

06 Apr 2026

We are a boutique. Our Instagram shop links to STK Push payment. Game changer.

G

Gladys Atieno

06 Apr 2026

The pop-up prompt is so intuitive even my 70-year-old mother uses it.

K

Kevin Omondi

06 Apr 2026

The no extra apps requirement is huge. Customers hate downloading new apps.

B

Benson Kipkorir

06 Apr 2026

We are a electronics shop. Customers pay deposits for high-value items.

J

John Mutua

06 Apr 2026

I love how you said "you don't need to understand the API." That's real honesty.

T

Timothy Kipruto

06 Apr 2026

Safaricom should teach every business owner about this. So many still don't know.

Share Your Thoughts