# LogicBoxes

### Инструкция по настройке и установке модуля.

1\. Скачайте [архив](https://github.com/unitpay/logicboxes-module) с модулем.

2\. Скопируйте содержимое директории unitpay из архива на какой-либо ваш хостинг.

3\. Перейти в панели LogicBoxes в меню settings->finance & billing->payment gateway->list/add.4. Нажать на кнопку "Аdd a gateway", в открывшемся окне внизу нажать "Add it now".

5\. В gateway url ввести  [http://<](http://xn--%26lt%3B-e6dsg7e/)домен привязанный к вашему хостингу>/unitpay/paymentpage.php

6\. Остальные поля настроить по вашему усмотрению и нажать "Save settings".

7\. Заполнить поля в config.php на вашем хостинге. $domain = 'unitpay.ru', $secret\_key и $public\_key вы можете взять в личном кабинете unitpay. \
$Key вы можете увидеть в настройках панели logicboxes, для этого вам нужно будет пройти в меню settings -> finance & billing -> payment gateway -> list/add и напротив платежной системы unitpay, которую вы только что настроили, нажмите кнопку "Manage". В одном из полей открывшегося окна вы увидите значение key.

8\. В личном кабинете unitpay пропишите адрес обработчика платежей&#x20;

[`http://<`](http://xn--%26lt%3B-e6dsg7e/)`домен привязанный к вашему хостингу>/unitpay/postpayment.php`

<div align="left"><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/551a91dbe4b0221aadf24410/images/580a3a8290336070ba247d08/file-UvUDQyRVRR.png" alt=""></div>


---

# 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://help.unitpay.ru/modules/cms-modules/logicboxes.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.
