Skip to main content

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/

/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"
)

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycrystalpay-0.0.1-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

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

Hashes for pycrystalpay-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5b044b30eb164f76f12143cb2fdef5a564bc1c8ba993cf13783030cc2bc8acad
MD5 409ff2c904b3ace3a245dfc464c30ec2
BLAKE2b-256 6ae2da796e3740760342dc5aa78ae4039554f07e68c321a25586910eae52fb6a

See more details on using hashes here.

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

Hashes for pycrystalpay-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 252e1ee5105b2e1828a6b2909c87850d096b8c7fef20f2f53b27a81378ad078f
MD5 02fa9e81a5082b8f1300f8f047ddb92c
BLAKE2b-256 2fadb0e8a1443fcfb4ecf45d38ad60d1a5dd72d4333dd59b3916310147465609

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page