CrystalPay api wrapper
Project description
pyCrystalPay
Install
From Pypi
pip install pycrystalpay
Async
Инициализация
from pycrystalpay import AsyncCrystalPay, types
client = AsyncCrystalPay(
auth_login="mylogin",
auth_secret="mysecret",
wait_cooldown=True # auto wait 5 rps
)
Методы /invoice/
Создание платежа
/invoice/create
payment: types.InvoiceCreate = await client.invoice_create("100","purchase","1")
payment.url # Ссылка для оплаты
payment.id
Получение информации о платеже по id
/invoice/info
response: types.InvoiceInfo = await client.invoice_info("id_платежа")
if response.is_payed:
...
Методы /me/
response: types.MeInfo = await client.me_info()
Методы /balance/
response: types.BalanceList = await client.balance_list(hide_empty=True)
response: types.BalanceGet = await client.balance_list(method="BITCOIN")
Методы /method/
response: types.MethodList = await client.method_list(compact=True)
response: types.MethodInfo = await client.method_get(method="BITCOIN")
response: bool = await client.method_edit(method="BITCOIN", enabled=True, extra_commission_percent=0)
Методы /payoff/
response: types.PayoffCreate = await client.payoff_create(
"SBPP2P",
"somewallet",
100,
"amount"
)
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
pycrystalpay-0.0.1.tar.gz
(8.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pycrystalpay-0.0.1.tar.gz.
File metadata
- Download URL: pycrystalpay-0.0.1.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b044b30eb164f76f12143cb2fdef5a564bc1c8ba993cf13783030cc2bc8acad
|
|
| MD5 |
409ff2c904b3ace3a245dfc464c30ec2
|
|
| BLAKE2b-256 |
6ae2da796e3740760342dc5aa78ae4039554f07e68c321a25586910eae52fb6a
|
File details
Details for the file pycrystalpay-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pycrystalpay-0.0.1-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
252e1ee5105b2e1828a6b2909c87850d096b8c7fef20f2f53b27a81378ad078f
|
|
| MD5 |
02fa9e81a5082b8f1300f8f047ddb92c
|
|
| BLAKE2b-256 |
2fadb0e8a1443fcfb4ecf45d38ad60d1a5dd72d4333dd59b3916310147465609
|