Guides
M-Pesa payments, step by step.
Short, practical guides for Kenyan business owners and developers: code for PHP, Node.js and Python, shop plugins, and plain answers on price and choice. Each one shows how to take M-Pesa payments into your own till, paybill or bank with JMSURF PAY. JMSURF PAY processes the payment requests; Safaricom M-Pesa and your bank move the money straight to you.
STK push to a bank paybill without DarajaSend M-Pesa prompts for Equity 247247, KCB 522522 and other bank paybills, straight into your bank account.Read more Safaricom Daraja vs JMSURF PAYBank paybills, settlement, setup time, API work, no-code options, webhooks, test mode and price, side by side.Read more M-Pesa on WooCommerceInstall the JMSURF PAY plugin and take M-Pesa prompts at checkout, paid straight to your till, paybill or bank.Read more M-Pesa on ShopifyA manual payment method plus the JMSURF PAY connector: the prompt goes to the order's phone and the order is marked paid.Read more M-Pesa on WHMCSClients pay invoices with an M-Pesa prompt. The invoice is marked paid with the M-Pesa receipt.Read more M-Pesa payment button for any websiteOne line of HTML shows a Pay with M-Pesa button. The customer pays without leaving your site.Read more SMS payment alertsA text for every payment, like a bank alert, paid from your own prepaid SMS credit topped up by M-Pesa.Read more Test M-Pesa payments with test keysTest keys, simulated results by amount (2, 3, 4) and livemode false, before your business is verified.Read more M-Pesa STK push in PHP and LaravelSend the prompt with cURL, verify the signed webhook, check the status. Plain PHP and Laravel examples.Read more M-Pesa STK push in Node.jsAn Express route that sends the prompt, a raw-body webhook receiver with signature check, and a status helper.Read more M-Pesa STK push in Python (Flask and Django)requests code for the prompt and status, plus signed webhook receivers for Flask and Django.Read more M-Pesa payment webhooks: events, signatures and retriesEvery event, the body and headers, HMAC-SHA256 checks in several languages, retries and duplicates.Read more M-Pesa API for SaaS platforms: pay each client directlyRegister each client's till, paybill or bank by API, then send prompts that pay that client straight away.Read more How much does M-Pesa integration cost in Kenya?Software, connection work and Safaricom or bank charges explained, with JMSURF PAY's real flat prices.Read more Best M-Pesa payment integration in Kenya: how to chooseTen questions to ask any provider, why they matter, and how JMSURF PAY answers each one.Read more How to accept M-Pesa payments on your websiteFive ways, from a no-code payment link to the API, and tips for more completed payments.Read more M-Pesa reconciliation: software vs spreadsheetsWhy matching M-Pesa payments by hand fails, and how recording each payment at request time fixes it.Read more Till, paybill or bank account: which should you use?The difference between M-Pesa tills, paybills and bank paybills, and how each works with STK push.Read more
Looking for every endpoint, field and error code? The API documentation has the full reference.Open the docs
Start on the Free plan: 1 payment channel, up to KES 50,000 a month, test keys included. Questions? WhatsApp +254 712 504 593.