Send to Mpesa Payment Gateway

A simple Mpesa WooCommerce payment gateway that allows customers to send the shop owner the…

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.

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

Note: This plugin does not have the API verification capabilities at this time the Mpesa Daraja API does not support the ability to read data from Customer to Customer (C2C) though this is a future possibility.
I will also evalaute the need to add the Lipa na Mpesa or PayBill options if more users make requests for these options.

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.

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.

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.

1.0.0

Initial release

  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.