# DIAFAN.CMS

**The Module Setup and Installation Instruction**

{% hint style="info" %}
The module can be installed directly by selecting it in the "Addons" in the CMS admin panel.

It can also be downloaded directly from the [DIAFAN.CMS marketplace.](https://addons.diafan.ru/modules/platezhi/priem-oplaty-cherez-unitpay647/)
{% endhint %}

1. Download the [archive](https://github.com/unitpay/diafan-module/archive/master.zip) with the module.
2. Copy the contents of the Unitpay directory from the archive to the root of your site.
3. Go to Payment -> Payment Methods and add a new payment method. When choosing a payment system, specify Unitpay.
4. Enter DOMAIN (unitpay.money), PUBLIC KEY, and SECRET KEY which you can get in your Unitpay.money account.
5. In your Unitpay.ru account, enter the address of the payment handler [http://](http://diafan.app/payment/get/unitpay)\<your site address>/payment/get/unitpay

<div align="left"><img src="https://244174165-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fdokumentacziya%2F-M9xezG_6tZ_3GRmvyig%2F-M9y3F7tA9ab48S0jteg%2F0.png?generation=1592326685578317&#x26;alt=media" alt=""></div>

{% hint style="info" %}
VAT is set inside the module settings in the "VAT" field: none (without VAT), vat0 (0% VAT), vat10 (10% VAT), vat20 (20% VAT%)
{% endhint %}

<div align="left"><img src="https://244174165-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9Y_k8Gr-WxeECFRelw%2F-MNOm90d2WBLZayeE3pm%2F-MNOpfnI0mFy_H4ulHSC%2F%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5-20201127-080939.png?alt=media&#x26;token=360bf2a4-04c1-4b65-9065-75ab645be65b" 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/diafan.cms.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.
