# 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

![](https://244174165-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9Y_k8Gr-WxeECFRelw%2F-MOWbutluyaQyFWrqdzy%2F-MOXPE6Yfp4X-SfeqZiv%2Fimage_2020-12-14_17-33-55.png?alt=media\&token=2ca9acf0-8ff7-4597-840d-f533eb1c9781)

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

<div align="left"><img src="https://244174165-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9Y_k8Gr-WxeECFRelw%2F-MOWbutluyaQyFWrqdzy%2F-MOXPYkCmh7KdP8iy6ps%2F%D0%BD%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B8.png?alt=media&#x26;token=8765c4cf-11b9-4ba7-9f71-2cc457e087c8" 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)

![](https://244174165-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9Y_k8Gr-WxeECFRelw%2F-MOWbutluyaQyFWrqdzy%2F-MOXQRqfpDJDofMNxKLl%2Fb3de862d-5262-47f1-b0a9-3a2b4cbbe663.png?alt=media\&token=cb2c3c77-2329-48a2-a40c-51d64b2f5e69)

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

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

![](https://244174165-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9Y_k8Gr-WxeECFRelw%2F-MOWbutluyaQyFWrqdzy%2F-MOXRDmQf77wLWZgWcAq%2F%D0%B4%D0%BE%D1%81%D1%82%D0%B0%D0%B2%D0%BA%D0%B0.png?alt=media\&token=83fa8e48-f897-4e3e-ad92-6a9094369eb5)

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="https://244174165-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9Y_k8Gr-WxeECFRelw%2F-MOWbutluyaQyFWrqdzy%2F-MOXRqzePaQWEPKb6paN%2F503ada5aa8cf420011bef9717e36cc70.png?alt=media&#x26;token=7c56c16a-11e2-4d51-98c0-3597b526ffb7" alt=""></div>
