How to accept M-Pesa on your website
Most customers in Kenya prefer to pay with M-Pesa, so a website that supports it can make buying or giving much easier. There are three common approaches.
1. Show your Paybill or Till number
The simplest option. Your site displays the number and clear steps, and customers pay from their phone. You match payments to orders by hand, so it suits a small number of payments, such as a church or a small shop.
2. Connect directly with Safaricom’s Daraja API
With M-Pesa Express (STK Push), the customer enters their phone number on your site and gets a payment prompt on their phone. Your site is told automatically when the payment succeeds. It requires a Paybill or Till number, a developer to build it, and Safaricom’s approval before going live.
3. Use a payment provider
Several Kenyan and international providers bundle M-Pesa with card payments in one checkout. This is often quicker to set up and good if you also want cards, but providers charge fees, so compare them before choosing.
How to choose
- Few payments and no online store: show your Paybill or Till number
- Many orders and you want M-Pesa only: connect through Daraja
- You want M-Pesa and cards together: use a payment provider
Keep it safe
- Customers enter their M-Pesa PIN on their own phone, never on your website
- Confirm payment from the automatic notification, not from a screenshot
- Send a receipt or confirmation after every payment
- Keep a record of each payment against the order or donor
Not sure which suits you? Try the cost picker or request a quote. M-Pesa payments are included in our online store package.
Common questions
Do I need a Paybill or Till number?
To take M-Pesa Express payments directly, yes. Confirm your options with Safaricom or your payment provider.
Can a church take offerings through its website?
Yes. A church can show its giving number or set up an online giving form that prompts payment on the giver’s phone.