Mpesa Integration to Website: Learn How to Add Mpesa API to Your Site

How to make money blogging in Kenya

I finally started accepting Mpesa Payments via my website! You can now pay for your favorite e-course or a web design project straight from this website. That is what I call a milestone

However, the journey to this point has not been an easy one. The difficulties I faced trying to integrate an Mpesa Payment Gateway on my website left me wondering why we do not have more developers investing in this area. At the least, Safaricom should come up with solutions on this but they seem to have left it to third-party developers.

JamboPay Mpesa Payment Gateway

One of the most popular online Mpesa Payment Gateways. Their downsides is that they charge an arm and a leg to have you use their Mpesa payment gateway. When I enquired about their services, they slapped me with a quotation that almost toppled me over.

Here is a screenshot of the email I received from them

How to Accept Mpesa on your website

To use JamboPay Mpesa gateway, you would need to pay at least Ksh 150,000 for them to setup your account. Clearly, JamboPay’s service are not for the small online trader or a struggling startup. I told them that much and headed back to Google to find a more viable solution.

PesaPal Payment Gateway

If you can forgive them for the lack of information/misinformation on their website, PesaPal are the guys to use for your online Mpesa Payments.

If your eCommerce store is built on WordPress, integrating with the PesaPal Mpesa Payment gateway is quite easy. There are several plugins available for free on the WordPress repository that make it very easy to start accepting Mpesa on your website.

  1. PesaPal Pay

Last updated on November 2014, the PesaPal Pay WordPress Plugins lets you collect payments via all the mobile money transfer services in Kenya. It makes use of forms and shortcodes [pesapal_pay] and [pesapal_donations] to collect payments and donations respectively.

The plugin is not very intuitive to use. Unless you know your way around coding, I would advise you try the other alternative provided below.

2.  WooCommerce PesaPal  Standard Payment Gateway

Last updated in July 2014 and downloaded 330 times, the WooCommerce PesaPal Standard Payment Gateway extends WooCommerce’s functionality and lets you charge for goods via Mpesa and other mobile payment services in Kenya.

I could not get this plugin to work on my website, and I finally gave up trying to use it.

I am not sure why the developer insists that you use demo consumer key and api during installation…

  3.  PesaPal Gateway for WooCommerce

This is the WordPress plugin that I ended up using on my online stores. It is super easy to use when you have WooCommerce installed on your WordPress website.

  • Simply download the plugin from the WordPress repository
  • Unzip it and upload it via FTP to wp-c0ntents/plugins.
  • Activate on your WordPress Dashboard
  • Go to WooCommerce Settings and Click on PesaPal
  • Enter your PesaPal API Key and Consumer Secret and start accepting payments via Mpesa!

I actually tried it with a sample product that I created on my website, and it works like a charm!

Lipa na Mpesa Online

Safaricom actually have an online Payment Gateway where you can Lipa na Mpesa. This came as a surprise to me. However, I cannot understand why I have to call or email them in order for them to share the details of the application with me.

Lipa na Mpesa OnlineThose are the 3 online Mpesa payment gateways that I am currently aware of. PesaPal takes the trophy home. It is super easy to register for a Merchant account on their website and the available free plugins makes it a darling to work with.

With the PesaPal Payment Gateway, there is no reason why you should not be selling your goods online. Contact me today to set up a beautiful online shop for your business.

Tags from the story
, ,
More from Patrick Mahinge

The Most Convenient Ways to Withdraw Money from Paypal In Kenya

How do you withdraw all the money you have earned from freelance...
Read More

10 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *