anypay-wrapper-1.0.0
توضیحات
AnyPay API Wrapper
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | anypay-wrapper-1.0.0 |
| نام | anypay-wrapper |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | MagistrUMDev |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/MagistrUMDev/anypay_api |
| آدرس اینترنتی | https://pypi.org/project/anypay-wrapper/ |
| مجوز | - |
## A small API wrapper for AnyPay bank system made for a project.
- Creating a payment
- Getting payments list
## Installation
Install AnyPay API with pip
```bash
pip install anypay_api
cd my-project
```
## Environment Variables
To use the class, you need to provide API_KEY and API_ID
`API_KEY`
`API_ID`
## Usage/Examples
Creating a payment
```python
from anypay_api import PayApi
api = PayApi(API_ID, API_KEY, PROJECT_ID)
async def create_payment():
payment = await api.create_payment(pay_id, amount, currency, desc, method, method_currency)
print(payment.payment_url) - https://anypay.io/pay/de13d3493-4508-4c6a-90d4
```
Getting a payment
```python
from anypay_api import PayApi
api = PayApi(API_ID, API_KEY, PROJECT_ID)
async def create_payment():
payments = await api.get_payments(payout_id)
print(payments.total) - 2
```
## Feedback
I would be very pleased for a star ⭐️
نیازمندی
| مقدار | نام |
|---|---|
| >=3.8.3 | aiohttp |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9 | Python |
نحوه نصب
نصب پکیج whl anypay-wrapper-1.0.0:
pip install anypay-wrapper-1.0.0.whl
نصب پکیج tar.gz anypay-wrapper-1.0.0:
pip install anypay-wrapper-1.0.0.tar.gz