Integrations20 May 2025Β· 8 min readΒ· Enet Integrations Team9 views0 found this helpful

M-PESA STK Push Explained: How Online Businesses Collect Payments Seamlessly

How Lipa Na M-PESA Online (STK Push) works, Paybill vs Till, what customers see, and why it converts better than manual paybill instructions.

A customer paying with a smartphone showing a green payment confirmation at a Kenyan market stall

Asking customers to "go to M-PESA, select Lipa na M-PESA, enter Paybill number, enter account number…" loses sales. Every step is a chance to make a mistake or give up. STK Push removes those steps: the payment request appears on the customer's phone, and they simply enter their PIN.

What is STK Push?

STK Push β€” officially Lipa Na M-PESA Online β€” is a Safaricom API that lets a business system send a payment prompt directly to a customer's phone. It is available through Safaricom's Daraja developer platform.

How it works, step by step

  1. The customer enters their phone number at checkout on your website, app or POS.
  2. Your server sends a payment request to M-PESA with the amount and reference.
  3. A prompt pops up on the customer's phone showing your business name and the amount.
  4. The customer enters their M-PESA PIN to approve.
  5. M-PESA sends the result to your server's secure callback URL.
  6. Your system confirms the order, issues a receipt and β€” if integrated β€” an eTIMS invoice.

Paybill or Till number?

  • Paybill β€” supports an account reference, ideal for invoices, school fees, rent, loans and subscriptions where you need to know what is being paid.
  • Buy Goods (Till) β€” simpler, suited to retail and once-off purchases.

Both can be used with STK Push. Your choice affects how you reconcile payments β€” see automating M-PESA reconciliation.

Why STK Push converts better

  • Fewer steps β€” no numbers to copy, no account references to mistype.
  • Fewer errors β€” the correct amount and reference are pre-filled.
  • Instant confirmation β€” orders are confirmed automatically, without a staff member checking statements.
  • Trust β€” customers see your registered business name before paying.

Where businesses use STK Push

What you need to get started

  1. A registered M-PESA Paybill or Till number for your business.
  2. A Daraja account and production credentials (go-live approval).
  3. A website or system on secure hosting with SSL, so callbacks can reach it.
  4. An integration developer β€” or a ready-made plugin.

Don't forget security

Callbacks must be verified on the server, amounts must never be trusted from the browser, and every page handling payments must use HTTPS. Our secure checkout guide explains why.

Ready to accept M-PESA online? Visit M-PESA integration or read the developer-focused Daraja API checklist.

Share this article

Was this article helpful?

Your vote helps us write better guides.

Need a hand implementing this?

Enet engineers in Nairobi handle migrations, SSL installs, M-Pesa and eTIMS integrations for you.

Launch today

Powering Your Online Success!

Domain, hosting, email and SSL from one local team β€” set up in minutes and backed by people you can call.

  • Free SSL
  • Free migration
  • 99.9% uptime
  • 24/7 expert support

Start with your domain

Check availability, then add hosting in the same order.

Prefer to talk? Call +254 726 872 512