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.5.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

autodonate_qiwi_api-0.1.5-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

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

Hashes for autodonate-qiwi-api-0.1.5.tar.gz
Algorithm Hash digest
SHA256 05b6f4b1f492e8fbdef80bbd4d13f5c0d30a7c8abea1f097806073f5ab9b1ec4
MD5 3975538d1cc5ed657d92b794166d5d65
BLAKE2b-256 704b644eea07c745bb3c00373645c59dd04c25498bdd08ec915b9e3b69cd276a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for autodonate_qiwi_api-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 401de67b92b98ccd49103989608b90a9928da7c3f90d0bab701d8a3d75eb9722
MD5 dc7c0890e6f883914c762225df4cf798
BLAKE2b-256 0900cd8fb9fa7a725beeae3767ec10d091e834eb476614f0022e9c57f678b355

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