mwanziamutua / commerce-mpesa
Mpesa payments integration for Craft Commerce 4.0+
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:craft-plugin
Requires
- php: ^8.0.2
- craftcms/cms: ^4.0.0
- craftcms/commerce: ^4.0.0
- craftcms/commerce-omnipay: ^4.0.0
- mwanziamutua/omnipay-mpesa: ^1.0.0
Requires (Dev)
- craftcms/ecs: dev-main
- craftcms/phpstan: dev-main
README
M-Pesa for Craft Commerce
This plugin provides a M-Pesa integration for Craft Commerce.
Requirements
This plugin requires Craft 4.0 and Craft Commerce 4.0 or later.
Installation
You can install this plugin from the Plugin Store or with Composer.
From the Plugin Store
Go to the Plugin Store in your project’s Control Panel and search for “M-Pesa for Craft Commerce”. Then click on the “Install” button in its modal window.
With Composer
Open your terminal and run the following commands:
# go to the project directory cd /path/to/my-project.test # tell Composer to load the plugin composer require mwanziamutua/commerce-mpesa # tell Craft to install the plugin ./craft install/plugin commerce-mpesa
Setup
To add a M-Pesa payment gateway, go to Commerce → Settings → Gateways, create a new gateway, and set the gateway type to “M-Pesa”.
Tip: The passkey is the key provided to you by M-Pesa during registration. These settings can be set to environment variables. See Environmental Configuration in the Craft docs to learn more about that.