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.4.tar.gz
(3.4 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.4.tar.gz.
File metadata
- Download URL: ecocash-0.0.4.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42edc40582e52f3eb60ff642c2ab8a853b9a73ad9c8ce04602d870d2b8794c14
|
|
| MD5 |
e1c3157685698fa0f56b3f878a23be62
|
|
| BLAKE2b-256 |
ce0de57a98058bd89791a933cb18c6b1cfab201a5b9d4e44cca4b53d75b4632c
|
File details
Details for the file ecocash-0.0.4-py3-none-any.whl.
File metadata
- Download URL: ecocash-0.0.4-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 |
f274bd37812e62a43145276ba59a6e08b0ea5e237ca2a93bbf13b04a64780d5d
|
|
| MD5 |
c3c2d8273bf1a65b65e26a7f18c05409
|
|
| BLAKE2b-256 |
0592e9e3b6ccd477eaa49a25e697c25dd4e21a6031dd0311d304611e4a5fe8fb
|