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.4.0.tar.gz
(15.4 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.4.0.tar.gz.
File metadata
- Download URL: django_mobile_money-0.4.0.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be269ba2f38722aafcf4316926b6e1aca76579876bf1e3f2551924ea2b664fb2
|
|
| MD5 |
fabdecb95ed6307e949dd5ac38a1418f
|
|
| BLAKE2b-256 |
2afa5e6e4616c1f300e5c2d07cd81a3b076453bcbbb09736591a4579c0cdbd18
|
File details
Details for the file django_mobile_money-0.4.0-py3-none-any.whl.
File metadata
- Download URL: django_mobile_money-0.4.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 |
85cbea538eecfd43bf74178cda2e6c68ec76589dd6457727aa8129bae6f88e09
|
|
| MD5 |
68ae8ec56ac1fc955fd21b49f2a4c0a4
|
|
| BLAKE2b-256 |
c2053ce68442a01e75766effeadcef6f77e66609531ad522f0bfe84567d17c2e
|