Django reusable package for African mobile money payments (Wave, Orange Money, MTN MoMo, Moov Money)
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.2.0.tar.gz
(12.3 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.2.0.tar.gz.
File metadata
- Download URL: django_mobile_money-0.2.0.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1f47fd1e20ccbcbf9b88f7cb7d82c4eb815cc8834a92e2079bb61f58c398a68
|
|
| MD5 |
ff3fec812c2094acfbe4237da8f893e9
|
|
| BLAKE2b-256 |
988b74a669dab012d70e38fafadaadd3fb69cf16b4335dfd82412cba8ea58442
|
File details
Details for the file django_mobile_money-0.2.0-py3-none-any.whl.
File metadata
- Download URL: django_mobile_money-0.2.0-py3-none-any.whl
- Upload date:
- Size: 15.9 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 |
6179b603c7c3700f789f2b4746047f9cd9b4dd70020e1d26d3503b87cc344566
|
|
| MD5 |
4d0bdd986ab28316ac91fd9ae6847a22
|
|
| BLAKE2b-256 |
1eca6f8ff6afbda11bf4f865aaa58c923dd54eaa02944113d6dd28698e736699
|