SDK Python pour l’intégration des paiements marchands EasyTransfert
Project description
EasyTransfert SDK Python
SDK Python pour l’intégration des paiements marchands EasyTransfert.
Installation
Vous pouvez installer le package via pip :
pip install easytransfert-sdk-api-marchand
Utilisation
Initialisation
from easytransfert import EasyTransfertSDK, SDKConfig
config = SDKConfig(
api_key="VOTRE_CLE_API",
ipn_url="https://votre-site.com/ipn"
)
sdk = EasyTransfertSDK(config)
Vérifier le solde
balance_data = {
"wallet": "main"
}
response = sdk.balance.get_balance(balance_data)
print(response)
Cash-in (Dépôt)
cashin_data = {
"amount": 1000,
"phone": "0102030405",
"network": "ORANGE"
}
response = sdk.cashin.cashin(cashin_data)
print(response)
Cash-out (Retrait)
cashout_data = {
"amount": 1000,
"phone": "0102030405",
"network": "ORANGE"
}
response = sdk.cashout.cashout(cashout_data)
print(response)
Vérifier le statut d'une transaction
status_data = {
"transaction_id": "TRANS123"
}
response = sdk.transaction_status.check_status(status_data)
print(response)
Licence
MIT
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
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 easytransfert_sdk_api_marchand-1.0.0.tar.gz.
File metadata
- Download URL: easytransfert_sdk_api_marchand-1.0.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45e1013436b53229ce4973c6132015a670d9355383b5d53bd47b9231114ebd11
|
|
| MD5 |
8b22ed098bcd2894e5def867cf6a4c67
|
|
| BLAKE2b-256 |
7348dc30696c97ffb9448f8e753b7375b088b3882fdf4818e020a92c275f0133
|
File details
Details for the file easytransfert_sdk_api_marchand-1.0.0-py3-none-any.whl.
File metadata
- Download URL: easytransfert_sdk_api_marchand-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa0adfe8f77f57332c282034fe041cd4ce6362dbf488e7a95e7a0f5ff89f636c
|
|
| MD5 |
639a95eaa2b84c1b5575d5f2cabedc48
|
|
| BLAKE2b-256 |
5c670d728955f08c2a79a029abb13752756568791c92da3789d7cac59c204fb2
|