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.1.0.tar.gz
(11.6 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.1.0.tar.gz.
File metadata
- Download URL: django_mobile_money-0.1.0.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22e6e25c1e2198d473c30d6f352c3ff01231b4e52a166d5d82454f56fbf0800c
|
|
| MD5 |
f295781dcf613e20d2fda0082fd868e8
|
|
| BLAKE2b-256 |
631fa11a73cc324463e2a51b44fb3d93de12f927b509913800ab8a8b72abdb02
|
File details
Details for the file django_mobile_money-0.1.0-py3-none-any.whl.
File metadata
- Download URL: django_mobile_money-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.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 |
8e8ed145aa1e487c4c17e68fbd7e3164f41f96f4f417d08dbb931283c6355918
|
|
| MD5 |
804c102313c1be63d24a1357e6948571
|
|
| BLAKE2b-256 |
afda5ade05f39279fdb07545f25bb224ddb0db639a80936498f904f83eeb6524
|