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.16.tar.gz
(5.8 kB
view details)
Built Distribution
File details
Details for the file bitpapa_pay-0.1.16.tar.gz
.
File metadata
- Download URL: bitpapa_pay-0.1.16.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-41-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d326725afb6b2e67e0d7c0e160def153518e9d24f2d8d66936c20c01a4d43f0a |
|
MD5 | 79a9050c210e46e103343ea7699da952 |
|
BLAKE2b-256 | b7466a84568df400009612342707f3c9aac41b7678816d2f01cbe5a2720c8f32 |
File details
Details for the file bitpapa_pay-0.1.16-py3-none-any.whl
.
File metadata
- Download URL: bitpapa_pay-0.1.16-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-41-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a25f6d250b281ac9214a0937bb2f1b3aa806118c6b7eac2e5d631b11893c407 |
|
MD5 | 76eac88cd3239bae4d97135fd648bca8 |
|
BLAKE2b-256 | 60ad408566f64c1623ccc39aa5a24ac76062fb1a54b73e2ebab5c7f865df6e6b |