Metadata-Version: 2.4
Name: freekassa-client
Version: 0.1.6
Summary: Simple FreeKassa payment client for Python
Project-URL: Homepage, https://github.com/418-th/freekassa
Project-URL: Source, https://github.com/418-th/freekassa
Author-email: Alexandr <ad.azarov17k@gmail.com>
License: MIT
License-File: LICENSE
Keywords: api,ecommerce,freekassa,payment
Requires-Python: >=3.8.0
Requires-Dist: requests
Description-Content-Type: text/markdown

# freekassa api client
## Intallation

```sh
pip install freekassa-client
```

## Usage

### Generate link payment

```python
client = FreeKassaClient(
    merchant_id=123456789,
    secret_word_1='secret1',
    secret_word_2='secret2',
    api_key='api_key'
)
payment_link = client.ui_create_order(
    amount=Decimal(1000), currency='USD', payment_id='payment_id'
)
```

### Check payment

```python
# yours view.py
def some_view(request, *args, **kwargs):
    ...
    verified = client.verify_notify(amount, order_id, sign)
    ...
```