> For the complete documentation index, see [llms.txt](https://help.watbot.ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.watbot.ru/chat-boty/bloki/platezhi-v-botakh.md).

# Платежи

Прием платежей в ботах WhatsApp, Viber, Telegram, ICQ

## Какие платёжные системы доступны для интеграции?

* юkassa
* юmoney
* robokassa
* cloud payments
* liqpay
* JustClick
* bePaid
* flowell
* cryptopay

### Общая схема

Чтобы принимать платежи в ботах нужно в разделе **Настройки** -> **Интеграции** подключить платежную систему Яндекс.Касса.

![Интерфейс подключения Яндекс.Касса ](https://3336945552-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqeuWXwuMesVXyaFvjP%2F-LqfDr-xQXx-yIOyH7ur%2F-LqfE58PxqJQGvjDId6V%2Fimage.png?alt=media\&token=e213f782-9f4c-4bbf-a4ba-fc772ad2fb35)

Заполните соответствующие поля во вкладке **Основное** и нажмите кнопку **Сохранить**, после чего система сгенерирует webhook (ссылку), который нужно скопировать и сохранить в личном кабинете сервиса Яндекс.Касса в настройках в поле URL для уведомлений.

![ Личный кабинет Яндекс.Касса](https://3336945552-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqeuWXwuMesVXyaFvjP%2F-LqfDr-xQXx-yIOyH7ur%2F-LqfEPVGglTG5M8rrf_g%2Fimage.png?alt=media\&token=935441c6-4d4b-4155-b0b1-e460078cc2bd)

Во вкладке **Оповещения** вы можете указать URL для уведомлений (только https), на который будет приходить информация о платежах. Ответ должен содержать код состояния `200`. В случае ошибки, система будет пытаться доставить уведомление в течение суток, постепенно увеличивая интервал между запросами.

![Настройка оповещений](https://3336945552-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqeuWXwuMesVXyaFvjP%2F-LqfDr-xQXx-yIOyH7ur%2F-LqfEZq5wBYQPfu8pI8j%2Fimage.png?alt=media\&token=6c99c4ca-edaa-49d7-9684-ff68901febce)

О каких статусах вы будете получать уведомления:

* `pending` - платеж создан, но не завершен.
* `waiting_for_capture` - платеж выполнен и ожидает подтверждения.
* `succeeded` - платеж успешно завершен.
* `canceled` - платеж отменен.

Подробнее о статусах сервиса Яндекс.Касса смотрите по ссылке:

{% embed url="<https://kassa.yandex.ru/developers/payments/payment-process#payment-statuses>" %}

**Пример оповещения для статуса `pending`. Платеж на 900 руб.**

```javascript
{
    "id": 1,
    "provider": "yandex_kassa",
    "provider_id": "12345678-1234-1234-1234-123456789ab",
    "currency": "RUB",
    "amount": 90000,
    "state": "pending",
    "created_at": 1554717083,
    "payload": null,
    "order": [
         {
             "name": "Название товара",
             "description": "Описание товара",
             "amount": 900
         }
    ],
    "contact": {
         "id": 1,
         "name": "Дмитрий",
         "messenger": "whatsapp",
         "phone": "79999999999"
    }
}
```

{% hint style="info" %}
Поле `amount` содержит сумму в минимальной единице измерения валюты.
{% endhint %}

**Пример оповещения для статуса `waiting_for_capture`**

```javascript
{
    "id": 1,
    "provider": "yandex_kassa",
    "provider_id": "12345678-1234-1234-1234-123456789ab",
    "currency": "RUB",
    "amount": 90000,
    "state": "waiting_for_capture",
    "created_at": 1554717099,
    "payload": {
        "type": "notification",
        "event": "payment.waiting_for_capture",
        "object": {
            "id": "12345678-1234-1234-1234-123456789ab",
            "status": "waiting_for_capture",
            "paid": true,
            "amount": {
                "value": "900.00",
                "currency": "RUB"
            },
            "authorization_details": {
                "rrn": "858585858585",
                "auth_code": "555444"
            },
            "created_at": "2019-04-08T09: 51: 35.762Z",
            "description": "[ID1] Дмитрий +79999999999",
            "expires_at": "2019-04-15T09: 51: 38.488Z",
            "metadata": [

            ],
            "payment_method": {
                "type": "bank_card",
                "id": "12345678-1234-1234-1234-123456789ab",
                "saved": false,
                "card": {
                    "first6": "555555",
                    "last4": "4444",
                    "expiry_month": "12",
                    "expiry_year": "2021",
                    "card_type": "MasterCard"
                },
                "title": "Bank card *4444"
            },
            "recipient": {
                "account_id": "123456",
                "gateway_id": "654321"
            }
        }
    },
    "order": [
        {
            "name": "Название товара",
            "description": "Описание товара",
            "amount": 900
        }
    ],
    "contact": {
        "id": 1,
        "name": "Дмитрий",
        "messenger": "whatsapp",
        "phone": "79999999999"
    }
}
```

##


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.watbot.ru/chat-boty/bloki/platezhi-v-botakh.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
