This plugin will help you start receiving online payments from your website directly to your M-Pesa Till or Paybill. Bag in those sales!
If you run a business in Kenya, integrating M-PESA with your WordPress website can significantly streamline payments, making it easier for your customers to pay for products and services. This guide will walk you through the entire process, from setting up the Daraja API to installing the mpesa WooCommerce plugin on your WordPress site, configuring it, and testing to ensure everything works smoothly.
The first step in integrating M-PESA with your WordPress website is setting up the Daraja app. Safaricom’s Daraja API is what allows your website to communicate with the M-Pesa system. The sandbox is used for testing purposes. Steps on going live is discussed in chapter 2 below.
Step 1: Sign Up on Safaricom Developer Portal

Step 2: Creating your sandbox testing app



Step 3: Get Your Credentials
Consumer Key and Consumer Secret. These credentials will be used to authenticate your application.Once your Daraja app is set up, the next step is to install the mpesa WooCommerce plugin on your WordPress website.
Step 1: Install the Netech mpesa WooCommerce Plugin


Step 2: Configure the Plugin

With the mpesa WooCommerce plugin installed, you now need to configure it to connect with your Daraja app.
Step 1: Enter API Credentials
Consumer Key and Consumer Secret from your Daraja app.Shortcode (this is your business number or Till number) and Passkey (obtained from Safaricom).
Step 3: Customize Payment Instructions
Before going live, it’s essential to test the M-Pesa integration to ensure everything works correctly.
Step 1: Enable Sandbox Mode
Step 2: Make a Test Transaction
Step 3: Check Transaction Status
After testing everything using Sandbox. The next step is to go live so that you can start receiving real payments.
Step 1 :Business portal creation
Write an email to M-Pesa business team via this email (M-PESABusiness@safaricom.co.ke) and request them to create you a business administrator portal. Download this M-Pesa business Administrator application form and attach it when mailing the business team. If you have challenges on how to fill the document or how to write the email to M-PESA business team, feel free to call for guidance.
After M-PESA business team as created your portal, you will receive an email to the selected email of the administrator you have selected containing the username and the password to loin to the business portal below. You can access the portal via this link.

Reset your default password to activate your administrator portal account.
Now navigate to Daraja portal and click on Go live tab. Select Short Code as your verification type, enter your organization short code (either store number, Head office number or Paybill number). Enter your organization name and M-Pesa username. Please note that this username is the one that you requested the M-Pesa business team to use when creating your administrator portal credentials.

The selected administrator will receive the going live credentials, i.e. webhook links and passkey.


Now navigate to Daraja portal and switch from sandbox to the live app as shown below:

Now copy the Consumer key, Consumer Secret, Short code and paste them on the plugin as shown below. You will get the Online passkey from the email received after going live. If you don’t have it, write an emaail to M-Pesa API support team via apisupport@safaricom.co.ke to request for the same and activate your app:

Finally, test the final changes and push your app live, ready to receive online payments. If you might need any help in configuring the whole plugin, kindly let us know. You can WhatsApp, Call or email our support team via support@netech.co.ke for assistance.
This plugin will allow you to display prices and accepts payments in multiple currencies, allowing your customers to check out with their preferred currency and unique payment gateway.
Unlock the full potential of Elementor! Get advanced features, pro widgets, and build stunning, high-converting websites effortlessly. Download Elementor Pro now!
This Elementor header template will enable you to make dynamic and professional headers/navigation menu bars. No coding skills required. Just drag and drop.
This plugin will allow you to display prices and accepts payments in multiple currencies, allowing your customers to check out with their preferred currency and unique payment gateway.
Unlock the full potential of Elementor! Get advanced features, pro widgets, and build stunning, high-converting websites effortlessly. Download Elementor Pro now!
This Elementor header template will enable you to make dynamic and professional headers/navigation menu bars. No coding skills required. Just drag and drop.