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.4.tar.gz (6.1 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.4-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bitpapa_pay-0.2.4.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.3 Linux/6.11.0-19-generic

File hashes

Hashes for bitpapa_pay-0.2.4.tar.gz
Algorithm Hash digest
SHA256 1eed9dd43fa65b6c386dffbc1e005bae00cfe5bd8d3998210698e4a72d1db419
MD5 a4acc867502b26568dad9908df446d46
BLAKE2b-256 ae6c559a759c82cd5a98b7d746fbf219ce69964d4f07e68fe6cadaa9e6cc7753

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for bitpapa_pay-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7ad22321507045f6db5b0224befa517678d2b639c23db499d994283806f6681b
MD5 1ba1ca5596a4bbb824d7367e55453778
BLAKE2b-256 17f0647fa07bbc3166477fe1bb564eff1ce6ba9692a6d39783d553ea15df9405

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