Skip to main content

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.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

ecocash-0.0.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file ecocash-0.0.2.tar.gz.

File metadata

  • Download URL: ecocash-0.0.2.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

Hashes for ecocash-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5750c36a227d51cdbda594c63eabd2c066cedc8dfd758bb5f44fba5569e7eb19
MD5 878e18adf60c5e2c36a3752351b6f5e7
BLAKE2b-256 63cd68f0f19d80d6ee40e4049d00c349fe700a1fe655042df2723dbff43c4095

See more details on using hashes here.

File details

Details for the file ecocash-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: ecocash-0.0.2-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

Hashes for ecocash-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 31b7cfb97aed501ecd97a97c418919510067a4704f5a4a0a3e0902434aceba5d
MD5 93702e8d3b42aa9114ba10e640d9fb54
BLAKE2b-256 c1e931d09f7eb62e2ae59dd1858c550404df9e222248be810b91bb626299bc98

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