https://github.com/mwanjajoel/django-momoapi
This is a Django package for the MTN and Airtel MoMo APIs in Uganda.
https://github.com/mwanjajoel/django-momoapi
django django-rest-framework momoapi python3
Last synced: 4 months ago
JSON representation
This is a Django package for the MTN and Airtel MoMo APIs in Uganda.
- Host: GitHub
- URL: https://github.com/mwanjajoel/django-momoapi
- Owner: mwanjajoel
- License: mit
- Created: 2020-02-18T06:55:58.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-09-10T02:16:31.000Z (9 months ago)
- Last Synced: 2025-09-21T00:10:33.702Z (8 months ago)
- Topics: django, django-rest-framework, momoapi, python3
- Language: Python
- Homepage:
- Size: 75.2 KB
- Stars: 9
- Watchers: 4
- Forks: 3
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Authors: AUTHORS.md
Awesome Lists containing this project
README
# Django MoMo API
This is a django package for the MTN MoMo API. It can be added to your current django-based application so as to interact with the MTN MoMo API in a much simpler way.

## Why we created the Django MoMo API Package
MTN Uganda released API documentation to their Mobile Money service and integrations for Python, NodeJS, PHP, Java etc have been created but at the time of writing, there is no django package and yet Django is a popular Python based web framework.
## Installation
```
pip install django-momoapi
```
## Usage
```
TBD
```
## Development Setup
Clone the repository by running the following command in your terminal:
```
git clone https://github.com/mwanjajoel/django-momoapi
```
Create a Python virtual environment
```
virtualenv venv
```
Activate the virtual environment by running the following command in your terminal:
```
source venv/bin/activate
```
Install the dependencies by running the following command in your terminal:
```
pip install -r requirements.txt
```
Create .env file following the .env_example file
```
cp .env_example .env
```
Create a Postgres database and add its credentials to the .env file
```
DB_NAME=
DB_USER=
DB_PASSWORD=
DB_HOST=
DB_PORT=
```
Run migrations
```
python manage.py migrate
```
- Run application
```
python manage.py runserver
```
## Run tests
```
pytest
```
## Code Formatting using Black
```
black momo
```
## How to submit an issue
Please follow our [Bug Report Guide](ISSUE_TEMPLATE/BUG_REPORT.md) on how to submit your issue.
## How to request for a new feature
Please follow our [Feature Request Guide](ISSUE_TEMPLATE/FEATURE_REQUEST.md) on how to submit a feature request
## Code of Conduct
We follow a strict code of conduct and you can read it [Here](CODE_OF_CONDUCT.md)
## Credits
Django MoMo API package was designed and built by Mwanja Joel. Django MoMo API is licensed under the MIT license; for the full license please see the [LICENSE](LICENSE) file.
Please see the [AUTHORS](AUTHORS) file for the full list of contributors.
If you find Django MoMo API useful and want to reach out, find me on Twitter: [@mrjoelmwanja](https://twitter.com/mrjoelmwanja).