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.
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.
pip install django-momoapi
TBD
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_name>
DB_USER=<db_user>
DB_PASSWORD=<db_password>
DB_HOST=<db_host>
DB_PORT=<db_port>
Run migrations
python manage.py migrate
- Run application
python manage.py runserver
pytest
black momo
Please follow our Bug Report Guide on how to submit your issue.
Please follow our Feature Request Guide on how to submit a feature request
We follow a strict code of conduct and you can read it Here
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 file.
Please see the 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.