SDK Python pour l'API de paiement Cauris — Mobile Money en Afrique
Project description
Cauris — SDK Python
API de paiement Mobile Money pour l'Afrique. Orange Money, MTN, 9 pays.
Installation
pip install cauris
Recevoir un paiement (3 lignes)
import cauris
cauris.api_key = "ck_test_..."
charge = cauris.Charge.create(
amount=5000,
phone="237691234567"
)
print(charge.id) # "d6ac3af6-..."
print(charge.status) # "pending"
Le client recoit une notification USSD. Il confirme. Tu recois un webhook.
Verifier un paiement
charge = cauris.Charge.retrieve("d6ac3af6-...")
print(charge.status) # "success" | "pending" | "failed"
Parametres
| Param | Type | Requis | Description |
|---|---|---|---|
amount |
int | oui | Montant en unite minimale (5000 = 5000 XAF) |
phone |
str | oui | Numero international (237691234567) |
currency |
str | non | Defaut: XAF. Valeurs: XAF, XOF, CDF, UGX, GNF |
notify_url |
str | non | URL webhook appelee a la confirmation |
metadata |
dict | non | Donnees libres (ex: order_id) |
Pays supportes
Cameroun, Senegal, Congo-Brazzaville, Congo-Kinshasa, Uganda, Benin, Guinee-Conakry, Gabon.
Liens
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
cauris-0.2.1.tar.gz
(3.5 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 cauris-0.2.1.tar.gz.
File metadata
- Download URL: cauris-0.2.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41225f0c35bb0aa4056ecb933f88078ec43619ab1a65abe7006aa9b548b56e9b
|
|
| MD5 |
2af809bfd71f32a504ec9b89ae1bcbe2
|
|
| BLAKE2b-256 |
a017ccd7744b63df125b01e7f0a918f715379432ce5141537baae204732c3026
|
File details
Details for the file cauris-0.2.1-py3-none-any.whl.
File metadata
- Download URL: cauris-0.2.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e30feee27d330007108347b46d53573a3bc6f3c03d76ef21eca8268188430fe6
|
|
| MD5 |
8b63730aefa0e9c444c01410a6530fda
|
|
| BLAKE2b-256 |
b1b379be71ce66be3b9438956395622ec2c578987b39d7485ffddc68b0421c6f
|