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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05b6f4b1f492e8fbdef80bbd4d13f5c0d30a7c8abea1f097806073f5ab9b1ec4 |
|
MD5 | 3975538d1cc5ed657d92b794166d5d65 |
|
BLAKE2b-256 | 704b644eea07c745bb3c00373645c59dd04c25498bdd08ec915b9e3b69cd276a |
Close
Hashes for autodonate_qiwi_api-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 401de67b92b98ccd49103989608b90a9928da7c3f90d0bab701d8a3d75eb9722 |
|
MD5 | dc7c0890e6f883914c762225df4cf798 |
|
BLAKE2b-256 | 0900cd8fb9fa7a725beeae3767ec10d091e834eb476614f0022e9c57f678b355 |