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
File details
Details for the file autodonate-qiwi-api-0.1.5.tar.gz
.
File metadata
- Download URL: autodonate-qiwi-api-0.1.5.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.2 Linux/5.16.10-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05b6f4b1f492e8fbdef80bbd4d13f5c0d30a7c8abea1f097806073f5ab9b1ec4 |
|
MD5 | 3975538d1cc5ed657d92b794166d5d65 |
|
BLAKE2b-256 | 704b644eea07c745bb3c00373645c59dd04c25498bdd08ec915b9e3b69cd276a |
File details
Details for the file autodonate_qiwi_api-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: autodonate_qiwi_api-0.1.5-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.2 Linux/5.16.10-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 401de67b92b98ccd49103989608b90a9928da7c3f90d0bab701d8a3d75eb9722 |
|
MD5 | dc7c0890e6f883914c762225df4cf798 |
|
BLAKE2b-256 | 0900cd8fb9fa7a725beeae3767ec10d091e834eb476614f0022e9c57f678b355 |