Send to Mpesa Payment Gateway

June 10, 2023

Send to Mpesa Payment Gateway Plugin

A simple Mpesa WooCommerce payment gateway that allows customers to send the shop owner the payments on the mobile phone number.

Most WooCommerce users who want to receive payment via Mpesa do not have the PayBill or Till number.  

This plugin is designed to allow such users to receive payment from customers who want to send the payment to the business or personal phone number.

In the settings page you can add the instructions to your customers to allow them to make payments by sending to the store number or your Safaricom number.

The checkout provides the three important fields (customer name, customer mobile number and the Mpesa transaction code ) for MANUAL confirmation of the payment. 

Note: This is a MANUAL – Send Money to Mpesa as a payment method. This plugin does not have the API verification

Disclaimer

This plugin does not have any relation with WooCommerce or M-PESA trademarks or brands. It is provided for the sole purpose of connecting WooCommerce to the Mpesa payment.

Installation

Instructions on how to install the plugin and get it working:

  1. Upload send-to-mpesa-payment.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to the WooCommerce Settings > Payments tab and set the default values for your Mpesa number and the name that customers see on the transaction.

Screenshots

  1. Checkout Send Payment to Mpesa frontend - details and form.

    Checkout Send Payment to Mpesa frontend - details and form.

  2. Send to Mpesa payment gateway enable settings page.

    Send to Mpesa payment gateway enable settings page.

  3. Customizable options for Send to Mpesa payment gateway.

    Customizable options for Send to Mpesa payment gateway.

  4. Validation errors for empty fields for the Mpesa payment.

    Validation errors for empty fields for the Mpesa payment.

  5. Disabled option for the Send to Mpesa payment gateway on payments gateway page.

    Disabled option for the Send to Mpesa payment gateway on payments gateway page.

  6. Frontend illustration of payment gateway

    Frontend illustration of payment gateway

  7. Order page with the payment details from Mpesa Transaction.

    Order page with the payment details from Mpesa Transaction.

FAQ

Does this plugin work with WooCommerce only?

Yes, this is a custom WooCommerce payment gateway that will not work without WooCommerce.

How do you change the phone number displayed on the checkout form ?

You can change the phone number displayed on checkout from by editing Mpesa Recipient Number in the settings

Does it support Mpesa Till and Paybill API ?

No, this is a plugin for direct payments by sending money from one customer number to the store owner number or business phone number. The most basic way to send payment from one person to another using Mpesa send money feature.

Changelog

1.0.1

Tested with WooCommerce Version 7.7.2 and updated to version 1.0.1

1.0.0

Initial release

Details

  • Version: 1.0.1
  • Active installations: 900
  • WordPress Version: 4.3
  • Tested up to: 6.2.6

Ratings


5 Stars
4 Stars
3 Stars
2 Stars
1 Stars