QIWI API for Autodonate
Project description
Qiwi API
Qiwi API для Autodonate плагинов.
Использование:
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, так что Вы можете с лёгкостью проверять загруженность
модуля.
{% if QIWI_API_INSTALLED %}
<h1>Приём доната в Qiwi</h1>
<button>Оплатить</button>
{% endif %}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for autodonate-qiwi-api-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47227f03b5040612d1c7f071bcb822b6cd72be30cf77264a375204bded860fe1 |
|
MD5 | 38297f1a26a334c9f793ffce04f62cfe |
|
BLAKE2b-256 | 1fb8b4134ee7609e4e02a4b29f8d92ecf7eb742bdc7722c6c8be9220199b03c5 |
Close
Hashes for autodonate_qiwi_api-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47b35df0c3ddbb4e803dbe4ef9dae474d1c269e23d1a83b171ff85667a9c4872 |
|
MD5 | 320cb4e181bed42332afce99d4738ec4 |
|
BLAKE2b-256 | 9ae887d19c5941423aded5dbd86bc178df6332dcb6349abc7d8ee3a391d0ccf8 |