Django reusable package for African mobile money payments
Project description
django-mobile-money
Django reusable package for African mobile money payments. Integrez Wave, Orange Money, MTN MoMo et Moov Money en 3 lignes de code.
Backends supportes
| Provider | Pays | Statut |
|---|---|---|
| Wave | CI, SN | Stable |
| Orange Money | CI, SN, CM, BF, ML, GN | Stable |
| MTN MoMo | CI, GH, CM, BJ, SN, UG | Stable |
| Moov Money | CI, BJ, TG, BF, ML, NE | Stable |
Installation
pip install django-mobile-money
```bash
## Quickstart
**1. INSTALLED_APPS**
```python
INSTALLED_APPS = [
'django_mobile_money',
]
```python
**2. settings.py**
```python
MOBILE_MONEY = {
'DEFAULT_BACKEND': 'wave',
'WAVE': {'API_KEY': env('WAVE_API_KEY'), 'SANDBOX': True},
'ORANGE_MONEY': {'CLIENT_ID': env('ORANGE_CLIENT_ID'), 'CLIENT_SECRET': env('ORANGE_CLIENT_SECRET')},
'MTN_MOMO': {'SUBSCRIPTION_KEY': env('MTN_SUBSCRIPTION_KEY'), 'ENVIRONMENT': 'sandbox'},
'MOOV_MONEY': {'USERNAME': env('MOOV_USERNAME'), 'PASSWORD': env('MOOV_PASSWORD'), 'PARTNER_ID': env('MOOV_PARTNER_ID')},
}
```python
**3. Lancer un paiement**
```python
from django_mobile_money import pay
result = pay(phone='+22507XXXXXXXX', amount=5000, backend='wave')
if result['status'] == 'success':
print('Paiement confirme :', result['transaction_id'])
```python
## Tests
```bash
uv run pytest -v # 26 passed
```bash
## Auteur
OURA KONAN ROMEO - Django Developer & IT Instructor
Abidjan, Cote d Ivoire
https://github.com/oura02
## Licence
MIT 2026 OURA KONAN ROMEO
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django_mobile_money-0.3.0.tar.gz
(15.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_mobile_money-0.3.0.tar.gz.
File metadata
- Download URL: django_mobile_money-0.3.0.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2f666bbab8e214ab937bb9573f89b065f68baeeb0ac3297224800591059aaed
|
|
| MD5 |
53fb312a07b6c36ad3ed4e98b0a0d9e6
|
|
| BLAKE2b-256 |
a5ce93e399bdafb8ac0c1f576e37d31da68a63573f31dc77392044d1267a266a
|
File details
Details for the file django_mobile_money-0.3.0-py3-none-any.whl.
File metadata
- Download URL: django_mobile_money-0.3.0-py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13ccb839231dcb5582ee03801d43556ccc08825f9d1f080435346834ed35db0a
|
|
| MD5 |
aea585b6c5cdcb3af29b43bcf3950bdd
|
|
| BLAKE2b-256 |
fca1776034f6456b7c897c9dad43c6909f7f8142fa5d1eb9f73b9bf0d09cbd42
|