Payments
How customers pay you
Overview
M-PESA, two ways.
You can take M-PESA payments directly to your own till or paybill. Money goes to your account, not through ours. You can use the manual method, the automatic STK push method, or both. Find them under Advanced, Integrations, Payments.
Manual M-PESA
Customers pay you, then enter the code.
Steps
- 1
Switch on Manual M-PESA.
- 2
Choose Till Number or Paybill.
- 3
Enter your number. For a paybill, also enter the account number customers should use.
- 4
Save.
Manual orders stay pending until you confirm the payment yourself. See the Orders page.
M-PESA STK push (Daraja)
Customers get a prompt on their phone and orders mark themselves paid.
STK push needs the Hobby plan or higher and a Safaricom Daraja app of your own. A guided panel walks you through three steps.
Steps
- 1
API credentials: paste the Consumer Key and Consumer Secret from your Daraja app.
- 2
Shortcode and passkey: enter your Business Shortcode (your till or paybill) and the STK push passkey Safaricom gave you.
- 3
Test and enable: run the connection test, then switch on STK push at checkout.
Fields
| Field | Description | Status |
|---|---|---|
| Consumer Key and Consumer Secret | From your Daraja app on the Safaricom developer portal. | required |
| Business Shortcode | The till or paybill number registered on Daraja. | required |
| Passkey | Provided by Safaricom for STK push. | required |
From your Daraja app on the Safaricom developer portal.
The till or paybill number registered on Daraja.
Provided by Safaricom for STK push.
You do not need to set a callback address. Menengai Cloud handles it. Each payment is confirmed with Safaricom before the order is marked paid.
If a customer says they paid but the order is still pending, give it a minute. The checkout page keeps checking, and settles the order when Safaricom confirms.