Mypayments
FeaturesSecurityContact
Log inRegister your business
FeaturesSecurityContact

Features

STK PushPaybill and till collectionsVerified settlementSigned webhooksCallback forwardingKopoKopoB2C and B2B payouts
Log inRegister your business
HomeFeaturesSTK Push

STK Push

STK Push API for your own paybill or till

One POST sends the M-PESA PIN prompt to your customer's phone. You keep your shortcode and your settlement account; we handle the Daraja tokens, passwords, timestamps and callbacks.

Every prompt is confirmed with Safaricom's STK Query before we call it paid.

Register your businessTalk to our team
Prompt a customer
curl -X POST https://api.mypayments.co.ke/api/v1/stk \
  -H "Authorization: Bearer $MYPAYMENTS_KEY" \
  -H "Content-Type: application/json" \
  -d '{"account":"<your paybill uuid>","phone":"0712345678",
       "amount":"1500","reference":"INV-2041"}'

How stk push works

Your reference, your tracking id

Send your own order reference and tracking id with the prompt. They come back on the webhook and on the transaction lookup, so you match payments to orders without a mapping table.

A callback is a claim, not a payment

Safaricom's callback can be late, repeated or forged. We treat it as a hint, query the result server to server, compare the amount with what you asked for, and only then settle.

Per-request callback URLs

Point a single payment at a different endpoint when you need to. The signing secret stays the one on your account, so verification code does not change.

Questions about stk push

Do I need my own paybill or till?+

Yes. You bring the shortcode and its Daraja credentials; money settles to your account, not ours.

What happens if the customer cancels?+

The transaction is marked failed with Safaricom's result code and you receive a webhook saying so.

More on your paybill

Paybill and till collectionsCustomers pay your paybill or till directly. We register the URLs with Safaricom and match every payment.Read more about Paybill and till collections Verified settlementNothing is marked paid until the provider confirms it server to server. Amount mismatches are flagged, never hidden.Read more about Verified settlement Signed webhooksHMAC-SHA256 signed, timestamped, retried with backoff, and every attempt kept in a ledger you can read.Read more about Signed webhooks
Mypayments

A product of Bitwise Digital Solutions Limited, building software in Nairobi since 2015.

  • Data controller and processor, Kenya DPA 2019
  • ICT certified

Features

STK PushPaybill and till collectionsVerified settlementSigned webhooksCallback forwardingKopoKopoB2C and B2B payouts

Company

Security and complianceContact usBitwise Digital SolutionsTerms and conditionsPrivacy policy

Talk to us

+254 796 002 630 [email protected]

Unit 5 & 6 IPS Building, Kimathi Street, Nairobi

© 2026 Bitwise Digital Solutions Limited. M-PESA and KopoKopo are trademarks of their owners. Mypayments is an independent integration service.