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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03037cc93158a13f0f49e0a1ea90bb59bff09aed4588882b5c28a47b2bdaef2b |
|
MD5 | eceb02b051fcedf6030ca2c055d7428c |
|
BLAKE2b-256 | 4556d49caf267f65a49fb8a2aa1f759371537e1660afc1dae3f75b6208ad5e4e |
Close
Hashes for autodonate_qiwi_api-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71536cd49cf0154d752eb96003c785dc4542651ee588dee9e010de4901ecc6aa |
|
MD5 | fa2f761b41cdfad21f0fb090948ef36b |
|
BLAKE2b-256 | 6e3e3351c5b00a5d6f9b680590f82ced66a8e21b4df77714c4e30f2290511aa7 |