# PHPShop

### Инструкция по настройке и установке модуля.

1\. Скачайте [архив](https://github.com/unitpay/phpshop-module/archive/master.zip) с модулем.

2\. Распакуйте содержимое архива в корень сайта.

3\. В файле phpshop/inc/config.php добавьте следующие строчки:

```
[unitpay]

domain = "unitpay.ru";

public_key = "<Ваш публичный ключ из личного кабинета unitpay.ru>";

secret_key = "<Ваш секретный ключ из личного кабинета unitpay.ru>";
```

4\. В админпанели перейти в "Заказы"-> "Способы оплаты" и добавить способ оплаты "Unitpay". Проверьте, чтобы стояла галка "Показывать".

![](/files/-MOqPE9ieA1vMx85l1W9)

5\. В личном кабинете unitpay.ru введите адрес обработчика платежей http\://<адрес вашего сайта>/payment/unitpay/result.php

![](https://d33v4339jhl8k0.cloudfront.net/docs/assets/551a91dbe4b0221aadf24410/images/58cc04892c7d3a79f5f8d4f5/file-8ygNqAPAqM.png)

6\. НДС и валюта задаются в "Настройках" -> "Основных настройках". Если вам нужно выбрать "БЕЗ НДС", то снимите галку "Учитывать НДС в счете".

![](/files/-MOqPVqCkszcQnQRPEyc)


---

# 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/modules/cms-modules/phpshop.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.
