autodonate-qiwi-api-0.1.5
توضیحات
QIWI API for Autodonate
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | autodonate-qiwi-api-0.1.5 |
| نام | autodonate-qiwi-api |
| نسخه کتابخانه | 0.1.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | firesquare |
| ایمیل نویسنده | team@firesquare.ru |
| آدرس صفحه اصلی | https://github.com/fire-squad/autodonate-qiwi-api |
| آدرس اینترنتی | https://pypi.org/project/autodonate-qiwi-api/ |
| مجوز | AGPL3 |
# Qiwi API
Qiwi API для Autodonate плагинов.
# Использование:
```python
import autodonate_qiwi_api
def payment_received(tx: autodonate_qiwi_api.types.Transaction):
print(f"Payment from {tx.account} with amount {tx.total} received!")
autodonate_qiwi_api.initialize(
token="abracadabra",
phone=7900000000,
callback=payment_received,
)
```
Так же модуль объявляет `QIWI_API_INSTALLED` глобальную переменную
в templates, так что Вы можете с лёгкостью проверять загруженность
модуля.
```html
{% if QIWI_API_INSTALLED %}
<h1>Приём доната в Qiwi</h1>
<button>Оплатить</button>
{% endif %}
```
نیازمندی
| مقدار | نام |
|---|---|
| >=0.1.0-alpha.0,<0.2.0 | autodonate |
| >=4.0.2,<5.0.0 | Django |
| >=2.27.1,<3.0.0 | requests |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10,<4.0 | Python |
نحوه نصب
نصب پکیج whl autodonate-qiwi-api-0.1.5:
pip install autodonate-qiwi-api-0.1.5.whl
نصب پکیج tar.gz autodonate-qiwi-api-0.1.5:
pip install autodonate-qiwi-api-0.1.5.tar.gz