Skip to content

paymentsds/mpesa-wp-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

M-Pesa Plugin for WordPress

M-Pesa Plugin for WordPress aims to help businesses integrating payments using M-pesa to their Wordpress website/application that has Woocommerce plugin installed.

Contents

Features

  • Receive money from a mobile account to a business account

Prerequisites

To use this plugin it is necessary to:

  • Have Woocommerce installed.
  • Create an account into M-pesa developer portal.
  • Make sure that the port 18352 is opened in your server.

Installation

Auto installation

  • Go to Plugins > Add new in your dashboard.
  • Search for PaymentsDS - Mpesa Payment Gateway for WooCommerce.
  • Click Install now on PaymentsDS - Mpesa Payment Gateway for WooCommerce to install the plug-in and then click ativate.

Manual installation

  • First, you need to download the latest version of the plugin from the [releases page]https://github.com/paymentsds/mpesa-wp-plugin/releases).
  • Upload the plugin folder to your WordPress installation's wp-content/plugins/ directory.
  • Activate the plugin from the Plugins menu within the WordPress admin.

Configuration

  • After a successfully installation and activation of the plugin, go to Woocommerce > Setting > Payments tab, its supposed to appear the M-pesa payment method listed. Activate it and then click on "Manage".
  • Fill out the configuration fields with the information found in the M-pesa developer portal.

How to contribute

All the contributions are welcome, but you should follow this steps to contribute:

  • Open an issue describing your feature suggestion or bug fix
  • fork this repo
  • Create a new branch with your feature

Developing with docker

  • Run the containers: docker-compose up

  • Access the wp page you just created on http://localhost:8080

  • Access the admin page and activate the plugins (mpesa-wp-plugin and woocommerce)

  • Now make your changes to the plugin and test if it works.

  • Commit your changes

  • Open a PR with these changes

After your PR has been merged, you can delete your branch.

License

This project is under the GNU General Public License v3.0 License. check the file LICENSE for details.