M-Pesa STK push prompts to your own till, paybill or bank

JMSURF PAY feature · updated 23 November 2026

An STK push prompt is the M-Pesa request that pops up on a customer's phone with the amount and asks for their PIN. It is the fastest way to be paid by M-Pesa: the customer does not type a till or paybill number, an account or an amount, so there are no mistakes. JMSURF PAY sends these prompts for your own till, paybill or bank account from your software, your dashboard or a link.

Three ways to send a prompt

FromHowWho uses it
The dashboardThe Prompt page: pick the payment channel, type the number and amount, press Send.Shops, offices and anyone without a developer
Your softwarePOST /api/payments/stkpush with your secret key.Websites, apps, POS, billing and ERP systems
A link or buttonThe customer opens a payment link or presses your website button and the prompt follows.Invoices, WhatsApp sales, online shops

Where the money goes

Each prompt is sent for one of your payment channels: a till, a paybill (with an account if you need one) or a bank account through the bank's paybill. When the customer enters their PIN, Safaricom moves the money from their M-Pesa straight into that channel. JMSURF PAY never receives or holds it, and there is nothing to withdraw.

  • Bank, Sacco and microfinance paybills are supported (44 in the list, plus any other paybill), so prompts can pay straight into a bank account. See STK push to a bank paybill.
  • Prompts go through JMSURF's approved Safaricom Daraja app, so you do not need your own.
  • If you have your own Daraja app, request whitelisting and prompts carry your own business name.

Built to get prompts through

  • Phone numbers in any form (07…, 01…, +254…, 254…) are cleaned to one form, and amounts are whole shillings from 1 to 250,000.
  • The same payment sent twice while the first prompt is still on the phone does not send a second prompt, and an Idempotency-Key makes API retries safe.
  • A number that received 3 prompts in 2 minutes is paused for a short while, so customers are not flooded.
  • When prompts to a number keep failing because they do not reach the phone, the answer says so in one plain sentence the customer understands.
  • Connections to Safaricom are kept warm, so a prompt usually leaves in well under a second.

Knowing the result

Every prompt ends as completed (with the M-Pesa receipt), failed (with the reason, such as a wrong PIN or no response) or cancelled. Your system hears about it by signed webhook, can ask the status API, and staff see it on the Transactions page and in reports.

Getting started

  1. 1Sign up and verify. Create an account and finish Verification. Test keys work straight away.
  2. 2Add a payment channel. The till, paybill or bank account you are paid into.
  3. 3Send your first prompt. From the Prompt page, or with the API examples in PHP, Node.js and Python.

Developers: see PHP, Node.js or Python.

Start on the Free plan: 1 payment channel, up to KES 50,000 a month, test keys included. Questions? WhatsApp +254 712 504 593.

Read next

© 2026 JMSURF PAY. All rights reserved. · ODPC reg. no. 194-9812-26EBPowered by JMSURF TECHNOLOGIES LTD