Payments

M-PESA Integration for a Website in Kenya: A SokoWise Guide

SokoWise TeamSokoWise Team
•••1 min read
M-PESA Integration for a Website in Kenya: A SokoWise Guide

An M-PESA integration connects your online checkout to a supported payment service, so customers can pay for orders and you can confirm their payment status. With SokoWise, create your online store, connect a supported M-PESA option, and get free setup and technical support. M-PESA transaction or service fees may still apply.

Add M-PESA to your ecommerce website

  1. Create your store. Start with the SokoWise Free plan, which includes your online store, POS, and inventory. Add products and publish your storefront.
  2. Connect a supported M-PESA collection option. Follow the integration setup shown in your SokoWise account. SokoWise does not charge for supported integration setup or technical help.
  3. Test checkout and confirm payment. Place a controlled test order, follow the payment prompt, and check the final provider-backed status before fulfilling an order.

An STK Push prompt is a payment request, not proof that the customer paid. Confirm the final transaction status in the order or provider records before handing over goods.

Does this integrate M-PESA with any website?

This guide describes M-PESA payments for an online store set up through SokoWise. It does not add a payment integration to Shopify or another unrelated website. If you are developing a custom web or mobile app, Safaricom's Daraja developer portal documents the M-PESA APIs and their current setup requirements.

Common questions about M-PESA website integration

Is M-PESA integration free with SokoWise?

Yes. SokoWise does not charge to set up a supported M-PESA integration for your online store or provide technical support for it. Charges set by Safaricom or another payment provider, including transaction fees, may still apply.

Does this work with Shopify?

No. The supported integration works with an online store set up through SokoWise. Shopify stores need a payment option supported by Shopify.

Do I need to write code?

You can set up and manage your online store through SokoWise without coding. If you are integrating Daraja directly into a custom website or app, follow Safaricom's current developer documentation and production requirements.

How do I know an order has been paid?

Check the payment status recorded for the order or confirm the transaction in your provider records. Do not treat a prompt or a customer's screenshot as the final confirmation.

Create your free online store, see the M-PESA integration details, or review the pricing page.

Join thousands of businesses using SokoWise

Start with free POS and core tools for sales, stock, invoices, and customer records. No credit card required.