How to add M-Pesa to your website

To accept M-Pesa on your website you need a payment gateway that connects to M-Pesa for you. Your customer enters their phone number, approves a prompt on their phone with their PIN, and you are paid. QwikiPay offers M-Pesa in Kenya and Tanzania.

What the customer sees

  1. 1They choose M-Pesa at checkout and enter their phone number.
  2. 2A prompt appears on their phone asking them to approve the amount.
  3. 3They enter their M-Pesa PIN.
  4. 4Your site shows the payment as successful.

Option 1: a payment link

The fastest way, with no code. Create a link, then put it behind a "Pay with M-Pesa" button on your site.

Option 2: checkout on your site

Add the QwikiPay checkout so the payment form opens over your own page. This suits shops with a cart.

Option 3: the API

For developers building a custom flow in a website or app. Build and try it in test mode before you go live.

What it costs

The M-Pesa network fee is 5.5% in Kenya and 5.1% in Tanzania. There is no setup or monthly fee.

Questions

Do I need a till or paybill number?

No. QwikiPay connects to M-Pesa for you and pays you out to your bank or mobile money.

Can I accept M-Pesa without a registered company?

Yes. Sign up as an individual with your ID.

Can I take cards as well?

Yes. The same checkout takes Visa and Mastercard.

Accept M-Pesa →Payment gateway in Kenya →Payment gateway in Tanzania →All guides →