aiopaystack-1.0.0
توضیحات
Asynchronous PayStack library
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | aiopaystack-1.0.0 |
| نام | aiopaystack |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Ichinga Samuel <ichingasamuel@gmail.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/aiopaystack/ |
| مجوز | - |
# aiopaystack
Asynchronous Python library for [Paystack](https://paystack.com/)
Add your paystack secret key as an environment variable as PAY_STACK_SECRET_KEY
```python
from paystack import Transactions
trans = Transactions()
await trans.initialize(email="sam@gmail.com", amount='5000')
# All parameters must be passed in as keywords. For both required and optional arguments.
# Passing secret key as an argument
# This replaces any key set in the environment
from paystack import Paystack
paystack = Paystack(secret_key="paystack_secret_key")
# to use one session for multiple request use the class as a context manager
async with Transactions() as trans:
res= await trans.verify(reference="ref")
# The response type for every request is a typed dict.
from typing import TypedDict, Any
Response = TypedDict('Response', {'status_code': int, 'status': bool, 'message': str, 'data': dict | Any})
## DOC Reference: <https://developers.paystack.co/v2.0/reference>
### Static Use
```
Don't forget to get your API key from [Paystack](https://paystack.com/) and assign to the variable `PAYSTACK_SECRET_KEY`
Please reference the **docs** folder for usage,
نیازمندی
| مقدار | نام |
|---|---|
| >=0.23.0 | httpx |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10 | Python |
نحوه نصب
نصب پکیج whl aiopaystack-1.0.0:
pip install aiopaystack-1.0.0.whl
نصب پکیج tar.gz aiopaystack-1.0.0:
pip install aiopaystack-1.0.0.tar.gz