Unofficial Python Wrapper Library for the EcoCash API by Tarmica Sean Chiwara, A computer engineering student.
Project description
Ecocash Python Library
Simple, intuitive Python client for Ecocash Open API.
Installation
pip install ecocash
Quick Start
from ecocash import Ecocashec = EcoCash(
app_id="app123",
api_key="key123",
merchant_code="850236",
app_name="MyApp"
)
Make a payment
result = ec.payment("263774222475", 10.5, "Payment test")
print(result)
Refund example
result = ec.refund("uuid_here", "012345l61975", "263774222475", 10.5, "Vaya Africa", "USD", "Test refund")p
print(result)
Transaction lookup example
result = ec.transaction_status("263774222475", "uuid_here")print(result)
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
ecocash-0.0.3.tar.gz
(3.3 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 ecocash-0.0.3.tar.gz.
File metadata
- Download URL: ecocash-0.0.3.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cd831533d2d904a7a8d27f1bfc45bbd1f0f0fa397bb3b23222952aaa5642ab0
|
|
| MD5 |
4789232bf353eaba3f26056b23021902
|
|
| BLAKE2b-256 |
eb42cbd61f80d1001c4b2136c1bd80416ccc087e3497b57f178e448e3d25f604
|
File details
Details for the file ecocash-0.0.3-py3-none-any.whl.
File metadata
- Download URL: ecocash-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d1c34849c7689f6cfbb6b791a67d41607d1d972a6c092184a6408b0e94dcf17
|
|
| MD5 |
cd1dc3ea2a49f64d10fcece6308d8a0c
|
|
| BLAKE2b-256 |
ce5d77743bf6654efbe4fa2e612c86cc1fe001e7ff9b788fa4baea2d6b5aefde
|