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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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