Skip to main content

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/

/me/info

response: types.MeInfo = await client.me_info()

Методы /balance/

/balance/list

response: types.BalanceList = await client.balance_list(hide_empty=True)

/balance/get

response: types.BalanceGet = await client.balance_list(method="BITCOIN")

Методы /method/

/method/list

response: types.MethodList = await client.method_list(compact=True)

/method/get

response: types.MethodInfo = await client.method_get(method="BITCOIN")

/method/edit

response: bool = await client.method_edit(method="BITCOIN", enabled=True, extra_commission_percent=0)

Методы /payoff/

/payoff/create

response: types.PayoffCreate = await client.payoff_create(
        "SBPP2P",
        "somewallet",
        100,
        "amount"
)

/payoff/submit

response: types.PayoffData = await client.payoff_create(id="some_id")

/payoff/cancel

response: types.PayoffData = await client.payoff_cancel(id="some_id")

/payoff/get

response: types.PayoffData = await client.payoff_get(id="some_id")

Metadata

Release files for pycrystalpay 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycrystalpay 0.0.2
File Size Uploaded
pycrystalpay-0.0.2.tar.gz 9.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pycrystalpay 0.0.2
File Interpreter ABI Platform
pycrystalpay-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 22.4 kB

Release files / pycrystalpay-0.0.2.tar.gz

Download URL pycrystalpay-0.0.2.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
fb1b9d21423874a33d0682b25d76ed67681fcca6e8561f131950cedb68b0da43
BLAKE2b-256 checksum
How to use checksums
7538494492ca2664a44657f8837d66cc0bae4076b34d8901677ceb9a7b0f90d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release files / pycrystalpay-0.0.2-py3-none-any.whl

Download URL pycrystalpay-0.0.2-py3-none-any.whl
Size 13.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c325cb19f7525095f30dd3d1fdd2ee9ba8930efd50ace6f953f8039f47a0f5d1
BLAKE2b-256 checksum
How to use checksums
5875ff9c9d136fbdf148c8efa03c851d5ae4c75a1a935ff6c7c8892d7adccae3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page