# MODX (miniShop2)

**Instructions for configuring and installing the module.**

1\. Download the [archive with the module](https://github.com/unitpay/modx/archive/main.zip).

2\. Copy the contents of the unitpay directory from the archive to the root of your site.

3\. Run your script YOUR\_DOMAIN/unitpay\_setup.php

4\. Go to Packages - > Minishop 2 - > Settings -> payment Methods. Make sure that the UnitPay module is present in the list and enabled. if not, add

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

5\. Go to "System Settings & Events" in the MODX Control Panel.&#x20;

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

Filter by the type of settings - "minisho2" and the type of "Payments". Install UnitPay Domain, UnitPay Public Key, UnitPay Secret Key (you can get them in the project settings in the Unitpay personal account)

![](/files/-MOXQRqfpDJDofMNxKLl)

The VAT settings (none, vat0, vat10, vat20) and currency are also set here.

6\. Delivery is set in packages -> minishop2 -> settings delivery options

![](/files/-MOXRDmQf77wLWZgWcAq)

7\. In your Unitpay dashboard, enter the address of the payment processor http\://\<your website>//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/en/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.
