# osCommerce

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

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

2\. Скопируйте содержимое директории unitpay из архива в корень вашего сайта.

3\. Перейдите в "Modules->Payment".

4\. Выберите "Unitpay" и нажмите "Install Module".

6.Нажмите кнопку "Edit" для "unitpay".

<div align="left"><img src="/files/-MNhvm34SxBQg-rSUQfs" alt=""></div>

7\. Введите домен (DOMAIN) - unitpay.ru, публичный ключ (PUBLIC KEY) и секретный ключ (SECRET KEY ), их вы можете взять из личного кабинета unitpay.ru.

8\. Если необходимо также введите порядок сортировки (в каком порядке будут выводиться платежные системы на странице выбора платежных систем), статус заказа, на который будет сменяться статус при удачной оплате (по умолчанию это "Paid\[Unitpay]" и статус заказа, на который будет меняться статус при ошибке оплаты (по умолчанию это Error\[Unitpay]).

9\. Нажмите на кнопку "Save".

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

<div align="left"><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/551a91dbe4b0221aadf24410/images/583307d8903360645bfa6b08/file-yFI7WfJudH.png" alt=""></div>

11\. НДС для товаров задается на странице "Locations / Taxes" -> "Tax Rates"

<div align="left"><img src="/files/-MNhwk86qRRpaqNHkQal" alt=""></div>

12\. В новом товаре задаете нужный Tax Class&#x20;

![](/files/-MNhwtghRihbdG8gGrbK)


---

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