Metadata-Version: 2.1
Name: ktechpayapi
Version: 0.0.3
Summary: A python library to consume KtechPay API
Home-page: https://github.com/ktechhub/ktechpay-python
Author: KtechHub
Author-email: info@ktechhub.com
License: MIT
Keywords: ktechpay python library
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.8.0
Description-Content-Type: text/markdown
Provides-Extra: test
License-File: LICENSE


# ktechpay-python
Python plugin for [Paystack](https://ktechhub.com/) View on [pypi.python.org](pypi.python.org)

## Installation
```sh
pip install ktechpayapi
```

Instantiate KtechPay

```python
from ktechpayapi.ktechpay import Kteckpay

test_secret_key = "kt_test_23cf0"

ktechpay = Kteckpay(test_key=test_secret_key)

# to use transaction class
print(ktechpay.testTransaction.list())

# initiate
print(ktechpay.testTransaction.initialize(
    amount=3,
    email="info@ktechhub.com"
))

print(ktechpay.testTransaction.verify(reference="e1b6679c5aad4bd3999953ac78e677a79d28d539085e409ebde1be640ebc27e7"))
```

S## tatic Use
To start using the KtechPay Python API, you need to start by setting your secret key.

You can set your secret key in your environment by running:

```sh
export TESK_KEY = 'your_test_secret_key'
export PRODUCTION_KEY = 'your_production_secret_key'
```

After exporting the keys, you can use the api like this
```python
from ktechpayapi.transaction import TestTransaction, ProductionTransaction

# to use transaction class
print(TestTransaction.list())

# initiate
print(TestTransaction.initialize(
    amount=3,
    email="info@ktechhub.com"
))

print(TestTransaction.verify(reference="e1b6679c5aad4bd3999953ac78e677a79d28d539085e409ebde1be640ebc27e7"))
```



