Metadata-Version: 2.3
Name: yookassa_api
Version: 0.2.2
Summary: Python Library for YooKassa API
License: MIT
Author: Lems0n
Author-email: abdulla.dev@mail.ru
Requires-Python: >=3.10
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: aiohttp (>=3.11.11,<4.0.0)
Requires-Dist: pydantic (>=2.10.5,<3.0.0)
Requires-Dist: requests (>=2.32.3,<3.0.0)
Requires-Dist: setuptools (>=75.8.0,<76.0.0)
Description-Content-Type: text/markdown

<div align="center">

# YooKassa API Library

[![YooKassaAPI](https://img.shields.io/badge/0.2.2-blue?style=flat&logo=pypi&label=pypi&labelColor=gray)](https://github.com/Lems0n)
[![YooKassaAPI](https://img.shields.io/badge/license-MIT-12C4C4?style=flat&logo=gitbook&logoColor=12C4C4)](https://github.com/Lems0n)
[![YooKassaAPI](https://img.shields.io/badge/3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20-yellow?logo=python&logoColor=yellow&label=python&labelColor=gray)](https://github.com/Lems0n)
</div>

## Table of Contents

- [description](#-description)
- [features](#-features)
- [Installation](#installation)
- [Getting Started](#-getting-started)
- [Author](#-author-of-yookassa-api-library)
- [License](#license)

## 📌 Description

A Python library for interacting with the YooKassa API. This library allows you to create, get, and cancel payments, as well as handle refunds.

Also there is both a synchronous and asynchronous variation

## 🔨 Features

- Easy-to-use interface for YooKassa API.
- Supports payment creation, capture, and cancellation.
- Supports refund creation, receiving

## 🗃️ Installation

To install the library, use pip:

```shell
pip install yookassa_api
```

Or you can install it by Poetry:

```shell
poetry add yookassa_api
```

## 💻 Getting Started

Here is a simple example to demonstrate how to use the library:

```python
from yookassa_api import (
    YooKassa, PaymentAmount,
    Confirmation
)
from yookassa_api.types import CurrencyType 


# Initialize the YooKassa client
client = YooKassa(
    'SECRET_KEY',
    shop_id=999999
)

# Create a payment
payment = client.create_payment(
    PaymentAmount(value=100, currency=CurrencyType.RUB),
    description='Test payment',
    confirmation=Confirmation(                                      
        type=ConfirmationType.REDIRECT,
        return_url="https://t.me/BotFather",                  
    )
)
print(payment)
```

## Licence

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## 👤 Author of YooKassa API Library
**© [Lemson](https://t.me/nveless)**
