> For the complete documentation index, see [llms.txt](https://docs.tarlanpayments.kz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tarlanpayments.kz/platezhnyi-shlyuz/webhook-platezhnoi-sistemy/gotovnost-provedeniya-oplaty.md).

# Готовность проведения оплаты

Метод предназначен для подтверждение оплаты заказа на стороне проекта.&#x20;

Системой отправляется запрос на confirm\_url проекта и ожидает ответ с обязательными параметрами: `id`, `status`, `message`, `is_payble`.

Метод будет отработан если параметр `confirm_url` был передан при инициации платежа.

### Backoff Policy

Для увеличения гарантий получения ответа используются BackOff политики при выполнении запросов:

* InitialInterval = 500 \* time.Millisecond, интервалы между повторными запросами
* RandomizationFactor = 0.5,  Разброс запроса по времени между повторами&#x20;
* MaxInterval = 60 \* time.Second, Максимальное время между повторами&#x20;
* MaxElapsedTime = 10 \* time.Minute, время в течении которого будут выполнены попытки&#x20;

<mark style="color:blue;">`GET`</mark> `https://merchant-website/confirm`

#### Query Parameters

| Name                                                     | Type   | Description                                             |
| -------------------------------------------------------- | ------ | ------------------------------------------------------- |
| type<mark style="color:red;">\*</mark>                   | string | [Тип транзакции](/platezhnyi-shlyuz/tipy-tranzakcii.md) |
| project\_reference\_id<mark style="color:red;">\*</mark> | string | Номер заказа на стороне проекта                         |

#### Headers

| Name          | Type   | Description                                                                                         |
| ------------- | ------ | --------------------------------------------------------------------------------------------------- |
| Authorization | String | Bearer  Авторотационный хэш (см [Формирование подписи](/platezhnyi-shlyuz/formirovanie-podpisi.md)) |

{% tabs %}
{% tab title="200: OK Пример ответа проекта. Все поля обязательны." %}

```json
{
    "id": "121abc", // Идентификатор транзакции на стороне проекта 
    "status": "success", // Статус заказа на стороне проекта
    "message": "order desciption", // Текстовое сопровождение ответа
    "is_payble" : true // Разрешение на проведение платежа
}
```

{% endtab %}
{% endtabs %}

&#x20;В зависимости от значения параметра `is_payble` системой принимается решение о проведении платежа:

* `true` - Проект разрешает проведение платежа
* `false` - Проект отказывает в проведении платежа


---

# 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 dynamically by asking a question.

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

```
GET https://docs.tarlanpayments.kz/platezhnyi-shlyuz/webhook-platezhnoi-sistemy/gotovnost-provedeniya-oplaty.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
