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.2.tar.gz (6.8 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.2-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bitpapa_pay-0.2.2.tar.gz
  • Upload date:
  • Size: 6.8 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.2.tar.gz
Algorithm Hash digest
SHA256 0d09135ebff815162a9b17e8d6d7731d2ab5843e04aba35f1f26495444bcfd91
MD5 c00e39bcb6b79fc24594a0951b77708a
BLAKE2b-256 5ab54bd1e1eab25767cb8349c67e3f8b66f9b6b6cfa8f3d3041a7cafe1f97fa9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bitpapa_pay-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 11.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 efb46e067541b5e6484fa5339c835268471936f14ff68292aa9ba1fc24126285
MD5 cd512ff32712988cd6996fcfd4a91d5b
BLAKE2b-256 19dc7bc7daeffede9cbd2e2e45dfd8230675a5a4de66432f2775749b382d85d2

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