https://github.com/sartim/mpesa-sdk
MPESA REST API SDK helper for Python developers
https://github.com/sartim/mpesa-sdk
mpesa payment payment-gateway payment-integration python
Last synced: 22 days ago
JSON representation
MPESA REST API SDK helper for Python developers
- Host: GitHub
- URL: https://github.com/sartim/mpesa-sdk
- Owner: sartim
- License: mit
- Created: 2018-06-04T09:12:34.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T23:20:40.000Z (almost 2 years ago)
- Last Synced: 2025-03-22T22:02:04.146Z (about 1 month ago)
- Topics: mpesa, payment, payment-gateway, payment-integration, python
- Language: Python
- Homepage:
- Size: 75.2 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**MPESA REST SDK**
[](https://github.com/sartim/mpesa-sdk)
Pure python sdk for [MPESA API](https://developer.safaricom.co.ke/docs#authentication).
**Features**
* Generate Token
* C2B Register Url
* C2B Simulate Transaction
* C2B Simulate Transaction
* B2B Payment Request
* B2C Payment Request
* Transaction Status
* Account Balance
* Reversal Request***Installation***
$ pip install mpesa-sdk
***Running tests***
Create .env file from [example](https://github.com/sartim/mpesa-sdk/blob/master/.env.example) then run
$ pip install pytest
$ pytest
To test for different python environments use
$ pip install tox
$ tox
Read more on [wiki](https://github.com/sartim/mpesa-sdk/wiki).