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.1.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.1-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bitpapa_pay-0.2.1.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.8.0-52-generic

File hashes

Hashes for bitpapa_pay-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f7feebc7bf6f67d42ae188c0c5054b523c995baf0180f2eaeda54df987ff5474
MD5 d0b5b98f3d7b9e3d8295abd5c2657cde
BLAKE2b-256 ca4554dd555c454a19e4b10d9f88f9d341809fd87662bed26e67e09e90bae2f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bitpapa_pay-0.2.1-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.8.0-52-generic

File hashes

Hashes for bitpapa_pay-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3f04a32c04a8471499b8817bf9adcf05a336811190f920778d91c0839fcf02ab
MD5 f58332239887a49738acaa21de1b5614
BLAKE2b-256 7180ff30f2e21800c476380c9e73d343e2473371964813b553c6bd79afe66fca

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