# HostCMS

1. Download the [module](https://github.com/unitpay/hostcms-module/archive/master.zip)
2. Go to the admin panel of your site
3. Go to Content ->Online stores, select your store and then go to directories ->payment systems.

![](/files/-MOqSEUM7x23iDOmqG9e)

4\. Add a new payment system, write Unitpay in the name and for example, Unitpay payment system in the description and click Apply.

5\. Click the Edit button next to the Unitpay payment system, then go to the Additional tab and remember the number in the ID field

![](/files/-M9y3VFeyI9_1p1AghP4)

6\. Next, go to the Main tab and copy the contents of the module file handlerXX.php in the Handler field

![](/files/-MOqYLY5OoZpfPT_3pNJ)

7\. In the name of Shop\_Payment\_System\_HandlerXX class, enter the ID you have previously remembered instead of XX.

8\. In the handler, enter the values of the variables $domain = 'unitpay.ru', $public\_key and $secret\_key which you can get in your unitpay.money personal account

9\. If necessary, assign the code of the currency (which is available in the store) in which you want to receive payments to the value of $currency\_name variable. It is RUB by default.

10\. In your Unitpay.ru account, enter the address of the payment handler http\://\<your site address>/shop/cart/

![](/files/-M9y3VFfDHo5_CPrwtFT)

11\. In order to set the VAT you need to go to Content -> online shops, select your shop and then find the item, click edit

![](/files/-MOqVSM-jDaBovaPckhU)

in the edit, there will be a tax and currency.

![](/files/-MOqVeDmhChBCd628WDo)

12\. to change the currency in the entire store, go to content - > online stores and click edit.

![](/files/-MOqVmAoQcZx4i045hwm)

![](/files/-MOqVq_xDml3y2yyG4Nk)


---

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