Metadata-Version: 2.1
Name: autodonate-qiwi-api
Version: 0.1.4
Summary: QIWI API for Autodonate
Home-page: https://github.com/fire-squad/autodonate-qiwi-api
License: AGPL3
Author: firesquare
Author-email: team@firesquare.ru
Requires-Python: >=3.10,<4.0
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Requires-Dist: Django (>=4.0.2,<5.0.0)
Requires-Dist: autodonate (>=0.1.0-alpha.0,<0.2.0)
Requires-Dist: requests (>=2.27.1,<3.0.0)
Project-URL: Repository, https://github.com/fire-squad/autodonate-qiwi-api
Description-Content-Type: text/markdown

# 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 %}
```

