# Уведомление о платеже

После завершения платежа система отправляет уведомление на указанный `webhook` URL. Формат передаваемых данных следующий:

```json
{
    "payment_id": "*************",
    "amount": 0.5,
    "currency": "eur",
    "status": "paid"
}
```

#### **Описание данных webhook**

| **Поле**     | **Тип**  | **Описание**                                                             |
| ------------ | -------- | ------------------------------------------------------------------------ |
| `payment_id` | `string` | Уникальный идентификатор платежа в системе.                              |
| `amount`     | `float`  | Сумма платежа в евро.                                                    |
| `currency`   | `string` | Валюта платежа (всегда `"eur"`).                                         |
| `status`     | `string` | Текущий статус платежа. Возможные значения: `paid`, `failed`, `pending`. |

#### **Telegram Уведомление для Мерчанта**

Дополнительно, мерчант получит уведомление в своем Telegram-боте с информацией о статусе платежа. Формат уведомления:

```
✅ Платеж успешно обработан!

ID платежа: ***********
Сумма платежа: 0.50 EUR
Комиссия сервиса с учетом НДС (20%): 0.10 EUR
Итоговая сумма: 0.40 EUR

Ваш баланс был пополнен на 0.40 EUR
Спасибо за использование нашего сервиса! 🙏  
```

#### **Важно**

* Убедитесь, что ваш webhook URL доступен через HTTPS.
* Для безопасности рекомендуется проверять подпись запроса, если это предусмотрено API.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.paysync.bot/merchanty-ekvaring/uvedomlenie-o-platezhe.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
