Are you struggling to set up Safaricom M-PESA integration for your WordPress website? Fret not! In this comprehensive guide, we’ll walk you through the step-by-step process of integrating M-PESA payment gateway into your WordPress site, enabling seamless transactions for your online business.
Prerequisites for Safaricom M-PESA Integration
Before diving into the technical aspects of M-PESA integration, ensure that you have the following prerequisites in place:
- An active Safaricom till or paybill number
- Upgraded M-PESA till or paybill settlement to a bank account
- Obtained Safaricom M-PESA administrator logins
Upgrading M-PESA Till or Paybill Settlement to Bank Account
To upgrade your M-PESA till or Paybill settlement from phone number to bank account, follow these steps:
- Fill out the Safaricom service application form
- Choose bank settlement instead of phone number
- Attach required documents (ID, cancelled check, bank statement)
- Email the completed form to Safaricom at this email attached
Obtaining Safaricom M-PESA Administrator Logins
To get your M-PESA administrator credentials, do the following:
- Fill out the M-PESA business administrator form
- Fill category one and select MPESA-G2
- Provide necessary details (short code or store number, organization name, admin username)
- Send the form to Mpesa and await your credentials
- Mpesa will reply in less than 24hours and notify of any next steps involved
Setting Up Safaricom Daraja API for WordPress Integration
With the prerequisites in place, let’s proceed to set up the Safaricom Daraja API for WordPress integration:
- Sign up for a Safaricom developer account
- Go live with the Daraja API by selecting your short code and filling in organization details
- Accept Safaricom’s terms and conditions
- Receive the OTP (one-time password) on the nominated administrator mobile number
- Access live app credentials by copying the consumer key and consumer secret
- Check your email for the online passkey
Configuring the WordPress M-PESA Payment Plugin
Now that you have the necessary credentials, it’s time to configure the WordPress M-PESA payment plugin:
- Install and activate the M-PESA payment plugin for WordPress (if not working email me )
- Enter the obtained credentials in the plugin settings (consumer key, consumer secret, online passkey) – The online passkey is always sent to your email once you successfully go live.
- Test the M-PESA integration to ensure successful transactions
Troubleshooting and Tips
If you encounter any issues during the M-PESA integration process, keep the following tips in mind:
- Double-check that you’re using the correct email and mobile number
- Reach out to Safaricom support for assistance if needed
- Ensure that your till or paybill settlement is upgraded to a bank account
- Need more consultation, email me and we can work together
FAQ (Frequently Asked Questions)
What if my till or paybill settlement is linked to a phone number?
If your till or paybill settlement is linked to a phone number, you need to upgrade it to a bank account. Follow the steps outlined in the “Upgrading M-PESA Till or Paybill Settlement to Bank Account” section to complete the process.
How long does it take to receive M-PESA administrator credentials?
After submitting the M-PESA business administrator form, it typically takes a few business days to receive your credentials from Safaricom. If you don’t receive them within a week, contact Safaricom support for assistance.
Can I use the M-PESA integration on multiple WordPress sites?
Yes, you can use the same M-PESA integration credentials on multiple WordPress sites. However, ensure that you have the necessary permissions and licenses for each website.
By following this guide, you’ll be well on your way to successfully integrating Safaricom M-PESA payment gateway into your WordPress website. Enhance your users’ experience and boost your online revenue with seamless M-PESA transactions. Happy integrating!


