# LogicBoxes

**The Module Setup and Installation Instruction**

1. Download the [archive](https://github.com/unitpay/logicboxes-module) with the module.
2. Copy the contents of the unitpay directory from the archive to any of your hostings.
3. In the LogicBoxes panel, go to the Settings->finance & billing->payment gateway->list/add.

![https://d33v4339jhl8k0.cloudfront.net/docs/assets/551a91dbe4b0221aadf24410/images/580a3a8290336070ba247d08/file-UvUDQyRVRR.png](/files/-M9y3ky2cqoJLC5fjJVU)

1. Click on Add a gateway, then click Add it now at the bottom of the opened window.
2. In the gateway url, enter http\://\<domain linked to your hosting>/unitpay/paymentpage.php
3. Configure the other fields at your discretion and click Save settings.
4. Fill in the fields in config.php on your hosting. You can get $domain = 'unitpay.money', $secret\_key and $public\_key in your unitpay account. You can find $key in the logicboxes panel settings. To do this, go to settings->finance & billing->payment gateway->list/add and click the Manage button opposite the unitpay payment system that you have just configured. You will see the key value in one of the fields in the opened window.
5. Enter the address of the payment handler in your unitpay account http\://\<domain linked to your hosting>/unitpay/postpayment.php


---

# 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/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.
