Metadata-Version: 2.4
Name: ecocash
Version: 0.0.2
Summary: Unofficial Python Wrapper Library for the EcoCash API by Tarmica Sean Chiwara, A computer engineering student.
Author-email: Tarmica Sean Chiwara <tarimicac@gmail.com>
Project-URL: Homepage, https://github.com/lordskyzw/ecocash
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown


# Ecocash Python Library

Simple, intuitive Python client for Ecocash Open API.

## Installation

```bash
pip install ecocash
```

## Quick Start

```python

from ecocash import Ecocashec = EcoCash(
    app_id="app123",
    api_key="key123",
    merchant_code="850236",
    app_name="MyApp"
)
```


# Make a payment

```python
result = ec.payment("263774222475", 10.5, "Payment test")
print(result)
```

# Refund example

```python
result = ec.refund("uuid_here", "012345l61975", "263774222475", 10.5, "Vaya Africa", "USD", "Test refund")p
```

```python
print(result)
```

# Transaction lookup example

```python
result = ec.transaction_status("263774222475", "uuid_here")print(result)
```
