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

Uploaded Source

Built Distribution

autodonate_qiwi_api-0.1.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: autodonate-qiwi-api-0.1.1.tar.gz
  • Upload date:
  • Size: 3.6 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.1.tar.gz
Algorithm Hash digest
SHA256 7d84cf075870e4eac0bff587e6204ff930fbe4f03bd7a7383814e9f9600ad406
MD5 7d6052d5f07bf340bda21ce0f67dcf29
BLAKE2b-256 3fb2dc52b88f306f9b483fa97a6bf8ee0285556c1777d957f7ce9b117d7469c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for autodonate_qiwi_api-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 646a2a29f914dcd625cdf16b8e4970223aee40fa2b1d2a478ebf8a52f1dd111a
MD5 c93251ed9b15f94477dfda967eedad27
BLAKE2b-256 d2c9551526b656d05e70b8934e1bfb38980f98718ca9e183291f3ad9545aec27

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