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.0.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.0.tar.gz.
File metadata
- Download URL: cauris-0.2.0.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 |
a4ed7a01a823e5740e613e2d4f0bbcaac59b6aae48bd0a9a0206fd1efbba079d
|
|
| MD5 |
3c2058fc506fa21bcf5666730b6a4834
|
|
| BLAKE2b-256 |
2b8d68a9bbc4d5ca48d58cdf0d571a74fa9c20fab6fd263da2436a0f486500f3
|
File details
Details for the file cauris-0.2.0-py3-none-any.whl.
File metadata
- Download URL: cauris-0.2.0-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 |
e1faaf1f730d3ed13d1011a38a28027cd85b4fb409c79d83aa60d5b1f7994029
|
|
| MD5 |
327ae42d19a8aa168f574195f32ae6c6
|
|
| BLAKE2b-256 |
0c43ebe47e1cc1ea1999d0141f3137daaa0989e4c8595426436df2d82f294a31
|