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")
result = await bitpapa_pay.create_invoice("USDT", 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_pay.get_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_pay.get_exchange_rates_all()
print(result)
await bitpapa_pay.close()
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.15.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for bitpapa_pay-0.1.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b641b67f2fad9ee4a802d63a054fafcd2ac0ab313ff3c8fa776ea6230681aee7 |
|
MD5 | b156ff55550df5f1d624f838f1978f8c |
|
BLAKE2b-256 | 47a2bd074c0065fcc75cd37e8a1b9f8fe21e84060421494f74e464b5c8771e84 |