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 = BitpapaPay(api_token="wDSJlwtszc-MsrdRSbyo")
result = await bitpapa.create_telegram_invoice("USD", 100)
print(result.model_dump())
print(
result.invoice.id,
result.invoice.currency_code,
result.invoice.amount,
result.invoice.status,
result.invoice.created_at,
result.invoice.updated_at,
result.invoice.url
)
result = await bitpapa.get_telegram_invoices()
for invoice in result.invoices:
print(
invoice.id,
invoice.currency_code,
invoice.amount,
invoice.status,
invoice.created_at,
invoice.updated_at,
invoice.url
)
result = await bitpapa.get_exchange_rates_all()
print(result)
if __name__ == "__main__":
asyncio.run(main())
Project details
Release history Release notifications | RSS feed
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.1.1.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for bitpapa_pay-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62557f1e2bad30b0779c0e5e644a659bc29aa1f28890802929f6251bbaf88194 |
|
MD5 | 781f3a20dcc7760afcf5fc0ed0c5e94c |
|
BLAKE2b-256 | 97d7aad4cf58d8c4d3732343fce27ca79d1fcf5763b9adb1a81041b0c958e20c |