Skip to main content

Bitpapa Pay async python wrapper

Project description

Bitpapa Pay asynchronous api wrapper

Docs: https://apidocs.bitpapa.com/docs/apidocs/wvea40l9be95f-integracziya-bitpapa-pay

Installation

Install bitpapa-pay

pip install bitpapa-pay

Usage/Examples

import asyncio

from bitpapa_pay import BitpapaPay


async def main():
    bitpapa_pay = BitpapaPay(api_token="api_token")
    # Создаем крипто инвойс
    crypto_invoice = await bitpapa_pay.create_crypto_invoice(
        amount=1, currency_code="USDT",
        private_message="test crypto invoice message",
        paid_button_name="open_bot",
        paid_button_url="https://google.com"
    )
    print(crypto_invoice)

    # Создаем фиат инвойс
    fiat_invoice = await bitpapa_pay.create_fiat_invoice(
        accepted_crypto=["USDT"],
        fiat_amount=10,
        fiat_currency_code="RUB",
        expiration_time=29,
        merchant_invoice_id="test merchant id 123",
        paid_button_name="callback",
        paid_button_url="https://google.com",
        private_message="test fiat invoice message"
    )
    print(fiat_invoice)

    # Получаем инвойсы
    invoices = await bitpapa_pay.get_invoices(page=3)
    print(invoices)

    await bitpapa_pay.close()


if __name__ == "__main__":
    asyncio.run(main())

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

bitpapa_pay-0.2.3.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bitpapa_pay-0.2.3-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file bitpapa_pay-0.2.3.tar.gz.

File metadata

  • Download URL: bitpapa_pay-0.2.3.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.11.0-17-generic

File hashes

Hashes for bitpapa_pay-0.2.3.tar.gz
Algorithm Hash digest
SHA256 55f0a973c6d49578eae09c98a9af60e21646fd2c3d361367e43eb35bd30437fc
MD5 c45e0585e1aef7c4fec5bb4ec18f0e10
BLAKE2b-256 c7688caea84862ac8535ce3d18521f8bc22390ef2e0c6e603ebb7589396038fe

See more details on using hashes here.

File details

Details for the file bitpapa_pay-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: bitpapa_pay-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.11.0-17-generic

File hashes

Hashes for bitpapa_pay-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fd346b0192a92dcabb1889e1809705f8cd1abc2084b420b386cf2783f4bdc2ff
MD5 f55a49c140991a3e54b295fbf31eef5d
BLAKE2b-256 77265ca1b616979205606c52547aaaebcb8401a199f2216e96237b2598ee6619

See more details on using hashes here.

Supported by

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