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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: autodonate-qiwi-api-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 1cb4416c6ec5f192febdae253c73cfa820eddbc41d96f15e2d541c27a18d27bd
MD5 2cfecccfcf7d55cd279d912e59d9532f
BLAKE2b-256 09736c65a9a591674260c4ebbfb3b24e414673d72adaea3bde9bea86fc828687

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for autodonate_qiwi_api-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0ea6a245e6e0d9f3f55c916bb1d9cf7ea936e8066cbbe94cc0aceb14fce71ea0
MD5 bb1eec7d68e1a038c421240048cb3ea7
BLAKE2b-256 b37780549c110e47ced903ebde2e8fa14f73b7152a665a1ee147fca1b1df6a66

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