# Drupal 7 (commerce)

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

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

2\. Установите модуль. Для этого скопируйте содержимое директории unitpay из архива по адресу <папка с вашим сайтом>/sites/all/modules. После этого нажмите в меню "Модули", поставьте галочку напротив Unitpay и нажмите на кнопку "Save configuration".

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

3\. Затем пройдите к Store -> Configure store -> Payment methods -> edit Unitpay и нажмите на кнопочку "Edit" напротив пункта "Enable payment method: Unitpay". В поле DOMAIN вставьте значение unitpay.ru, в поля PUBLIC KEY и SECRET KEY скопируйте публичный и секретный ключ из личного кабинета Unitpay.

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

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

<div align="left"><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/551a91dbe4b0221aadf24410/images/5790eaed9033602936037f10/file-d5eQvOskcg.png" 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/modules/cms-modules/drupal-7-commerce.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.
