cryptonator-API-0.0
توضیحات
cryptonator_API for https://www.cryptonator.com/
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cryptonator-API-0.0 |
| نام | cryptonator-API |
| نسخه کتابخانه | 0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | m0rtydisg@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/cryptonator-API/ |
| مجوز | - |
# cryptonatorAPI
Сreate Invoice
-----------------------------------
```python
api = Api(
merchant_id='4b8cc73b06e8205f4d212a7a8c0bb6497',
secret='b89a02b2801231fc8d60f65fe724448',
language='ru')
amount = Decimal('0.00015')
invoice_id = api.create_invoice(
item_name='test_tovar',
invoice_amount=amount,
invoice_currency='bitcoin')
#returns invoice_id
```
Check Invoice
-----------------------------------
```python
status = api.check_invoice(invoice_id)
print(status)
#{'order_id': '2636351', 'amount': '0.00015000', 'currency': 'bitcoin', 'status': 'unpaid'}
```
https://github.com/Whom-m0rty/cryptonatorAPI/blob/master/example.py
نحوه نصب
نصب پکیج whl cryptonator-API-0.0:
pip install cryptonator-API-0.0.whl
نصب پکیج tar.gz cryptonator-API-0.0:
pip install cryptonator-API-0.0.tar.gz