# MODX (miniShop2)

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

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

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

3\. Запустите скрипт ВАШ ДОМЕН/unitpay\_setup.php

4\. Перейдите в Пакеты -> Minishop 2 -> Настройки -> Способы оплаты. Убедитесь что модуль UnitPay присутствует в списке и включен, если нет то добавьте

![](/files/-MOXPE6Yfp4X-SfeqZiv)

5\. Перейдите в "Системные настройки & События" в панеле управления MODX.&#x20;

<div align="left"><img src="/files/-MOXPYkCmh7KdP8iy6ps" alt=""></div>

Отфильтруйте по типу настроек - "minisho2" и типу "Платежи". Установите UnitPay Domain, UnitPay Public Key, UnitPay Secret Key (их можно взять в настройках проекта в личном кабинете Unitpay)

![](/files/-MOXQRqfpDJDofMNxKLl)

Тут же задаются настройки НДС (none, vat0, vat10, vat20) и валюта.

6\. Доставка задается в Пакеты -> miniShop2 -> Настройки Варианты доставки

![](/files/-MOXRDmQf77wLWZgWcAq)

7\. В личном кабинете Unitpay введите адрес обработчика платежей http\://<адрес вашего сайта>//assets/components/minishop2/payment/unitpay.php

<div align="left"><img src="/files/-MOXRqzePaQWEPKb6paN" 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/modx-minishop2.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.
