Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

easytransfert_sdk_api_marchand-1.0.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file easytransfert_sdk_api_marchand-1.0.0.tar.gz.

File metadata

File hashes

Hashes for easytransfert_sdk_api_marchand-1.0.0.tar.gz
Algorithm Hash digest
SHA256 45e1013436b53229ce4973c6132015a670d9355383b5d53bd47b9231114ebd11
MD5 8b22ed098bcd2894e5def867cf6a4c67
BLAKE2b-256 7348dc30696c97ffb9448f8e753b7375b088b3882fdf4818e020a92c275f0133

See more details on using hashes here.

File details

Details for the file easytransfert_sdk_api_marchand-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for easytransfert_sdk_api_marchand-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa0adfe8f77f57332c282034fe041cd4ce6362dbf488e7a95e7a0f5ff89f636c
MD5 639a95eaa2b84c1b5575d5f2cabedc48
BLAKE2b-256 5c670d728955f08c2a79a029abb13752756568791c92da3789d7cac59c204fb2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page