PHPackages                             mwanziamutua/commerce-mpesa - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. mwanziamutua/commerce-mpesa

ActiveCraft-plugin[Payment Processing](/categories/payments)

mwanziamutua/commerce-mpesa
===========================

Mpesa payments integration for Craft Commerce 4.0+

v1.0.0(3y ago)02MITPHPPHP ^8.0.2

Since Feb 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mutuasm/commerce-mpesa)[ Packagist](https://packagist.org/packages/mwanziamutua/commerce-mpesa)[ RSS](/packages/mwanziamutua-commerce-mpesa/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

[![M-Pesa for Craft Commerce icon](./src/icon.svg)](./src/icon.svg)

M-Pesa for Craft Commerce
=========================

[](#m-pesa-for-craft-commerce)

This plugin provides a [M-Pesa](https://mpesa.com/) integration for [Craft Commerce](https://craftcms.com/commerce).

Requirements
------------

[](#requirements)

This plugin requires Craft 4.0 and Craft Commerce 4.0 or later.

Installation
------------

[](#installation)

You can install this plugin from the Plugin Store or with Composer.

#### From the Plugin Store

[](#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

[](#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
-----

[](#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](https://docs.craftcms.com/v3/config/environments.html) in the Craft docs to learn more about that.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1224d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8309d8bebf350a5efc158410d5321ab7af385ea03ceaac62d4d9a7757754d847?d=identicon)[mwanziamutua](/maintainers/mwanziamutua)

---

Top Contributors

[![mutuasm](https://avatars.githubusercontent.com/u/15994593?v=4)](https://github.com/mutuasm "mutuasm (1 commits)")

---

Tags

yii2omnipaycraftcmsmpesacommerce

### Embed Badge

![Health badge](/badges/mwanziamutua-commerce-mpesa/health.svg)

```
[![Health](https://phpackages.com/badges/mwanziamutua-commerce-mpesa/health.svg)](https://phpackages.com/packages/mwanziamutua-commerce-mpesa)
```

###  Alternatives

[craftcms/commerce

Craft Commerce

240425.9k186](/packages/craftcms-commerce)[verbb/events

A full-featured plugin for event management and ticketing.

2311.9k](/packages/verbb-events)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
