This plugin is dependent on Woocommerce Plugin and for it to work it needs details from Daraja portal by Safaricom.
This plugin does not work with Kopokopo Till Numbers, since the integration is different.
There is usually a test paybill and online passkey provided on Daraja Portal for testing purpose. Get Test Credentials

In order to receive payments in your website you first need to apply for a Till Number or Paybill Number from Safaricom. You can request for the requirements by writing an email to While requesting for a Till Number, make sure the payment settlement type is Bank and not M-PESA so that you will get Head Office Number, Store Number and Till Number. If the settlement type is M-PESA, it will not be possible to integrate to M-PESA through Daraja.
There are few steps needed in order to receive payments in your paybill number or till number.

Till Number Integration

This integration will need access to M-PESA portal .
Your account can be set up by writing an email to to request for it.
Once you have the username and temporary password sent to your email, follow the steps on this link to get the certificates used to access the portal.
Once logged into the M-PESA portal, create a new operator using the Store Number provided by clicking on Browse Organizations and then the Add button and choose API as the access channel.

Make sure you assign the operator Business Administrator or Business Manager role and fill in the details requested.

The new operator will appear under Children in the Overview menu.

The Store Number used here will be used in Daraja for the Go Live process.

Paybill Number Integration

You will need access to M-PESA portal just to confirm if everything is ok.
No need to create an operator in this case but just verify that the existing operator has a Business Manager or Business Administrator Role.
The Paybill Number will be used in the Go Live process in Daraja.

Go Live Process

The Go Live process is in Daraja Portal.
If you do not have an account, create one by clicking on the link above.
There is a Go Live option on the menu, click on it and you will see an option to download test cases.
Download the test cases and fill the test results manually on the STK Push request tab of the excel document with either Success or Failure depending on how you tested the app on sandbox.

Select Shortcode as the Verification Type and fill in the details. In the case of Till number, use the Store Number as the Organization Short Code while in the case of Paybill Number, use the Paybill Number.
The MPesa User Name is the one used while logging in in the M-PESA Organization portal to create the operator.

In the OTP Confirmation tab, make sure you select the M-PESA Express(for Till number) or Lipa Na M-PESA (for Paybill)option, if it is not available then it means there is a step missed during the set up.


Finish the process and the production URLs will be sent to your email. The Lipa Na M-PESA online passkey will also be sent on the same day of Go Live. In case there is a delay in the Online Passkey being sent, write an email to to inquire about it.

Production App

After successfully going live, a new app will be created in your Daraja account. The app usually starts with prefix Prod(Prod-xxxxx-xxx-xx). This is where you will get the Consumer Key and Consumer Secret to use in the plugin. Do not use the one for sandbox. To be able to see the production app, you will need to select the company, in the manage companies dropdown as shown below:

This is a sample production app with the Prod prefix.

Pro Version Plugin Settings

When you choose Till Number identifier type, The Store Number will be the one used for Go Live and the Shortcode will be the Till Number. When the choice is Paybill identifier type, the Head Office Number will be the paybill and the shortcode will also be the paybill.

The Passkey is the one sent on the email while the Consumer Key and Consumer Secret is the one on the Daraja production app created after Go Live.