# Payment  ready to be made

The method is designed to confirm payment of an order on the project side.

The system sends a request to "confirm\_url" of the project and awaits for a response with requisite parameters: id, status, message, is\_payble.

The method will be processed if the value parameter "confirm\_url" is uploaded when initiating a payment.

### Backoff Policy

To increase the guarantees of receiving a response, BackOff policy is used when fulfiling requests:

* InitialInterval = 500 \* time.Millisecond, intervals between repeated requests
* RandomizationFactor = 0.5, Spread of the request on time between retries
* MaxInterval = 60 \* time.Second, Maximum time between retries
* MaxElapsedTime = 10 \* time.Minute, the time during which the attempts will be made.

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

#### Query Parameters

| Name                                                     | Type   | Description                      |
| -------------------------------------------------------- | ------ | -------------------------------- |
| type<mark style="color:red;">\*</mark>                   | string | Type of transaction              |
| project\_reference\_id<mark style="color:red;">\*</mark> | string | Order number on the project side |

#### Headers

| Name          | Type   | Description                                        |
| ------------- | ------ | -------------------------------------------------- |
| Authorization | String | Bearer Auto-rotation hash (see Signature Creating) |

{% tabs %}
{% tab title="200: OK Example of a project response. All fields are mandatory. " %}

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

{% endtab %}
{% endtabs %}

The system decides whether to effect a payment depending on the value parameter "is\_payble":

* true - The project authorizes the payment
* false – The project declines the payment
