Skip to main content

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

autodonate-qiwi-api-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

autodonate_qiwi_api-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file autodonate-qiwi-api-0.1.0.tar.gz.

File metadata

  • Download URL: autodonate-qiwi-api-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 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

Hashes for autodonate-qiwi-api-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5d5c34f639385ae46b8961e3467dc57c637432797a0abf2e9b189b8a118fe951
MD5 7cf995cd16c8f43a4a1e0c0458038d2a
BLAKE2b-256 bd54530bb614120f8d50809b23c5a65c2e5b35c3b8c3d51c55eda9b3189821a6

See more details on using hashes here.

File details

Details for the file autodonate_qiwi_api-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for autodonate_qiwi_api-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea7c4084a43fb4af35550f7bd35efac7c4234b4ded90be4a3718b2676bba439f
MD5 fe69c8249d7b3fdbb18bf79538791e03
BLAKE2b-256 052de5c392ac0c337f6465a94d4c7df39b18780c901ce73173e3189897ffe8a2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page