# Drupal 8, 9 (commerce)

**Instructions for configuring and installing the module.**

{% hint style="info" %}
The module supports working with version 8 and 9 of Drupal (commerce)
{% endhint %}

1\. Download the [archive with the module](https://github.com/unitpay/drupal/archive/main.zip).

2\. install the module. to do this, go to extend - > install new module. Select the archive with the module and then "Save".

![](/files/-MOax6uViREeY5BtpJvb)

3\. Go To commerce - > Configuration -> Payment gateway. PAYMENT GATEWAY: "Unitpay" click "edit".In the DOMAIN field, INSERT the value unitpay.ru, in thePUBLIC KEY  and SECRET KEY , copy the public and secret key from the unitpay personal account.

![](/files/-MOaxzDsKs5dv4RG83oS)

4\. Enable the module and save it.

![](/files/-MOayDJQhQdZmNxzqxGV)

5\. in your unitpay dashboard, add the address of the handler in the format http\://\<name of your site>/commerce-unitpay/callback

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

6\. VAT is set inside the module settings Commerce -> Configuration -> Payment gateway

<div align="left"><img src="/files/-MOb-1RtPRjSEDF0Hgs4" alt=""></div>

7\. the currency is set in two places. Commerce -> Configuration -> Currencies

![](/files/-MOb-dxsz70S3R1R60Td)

8\. and then, to be able to change in products, you need to add to "Product types". Commerce -> Configuration -> Product types -> Edit Default -> Manage fields

![](/files/-MOb02bwVRPtpnsbwbjr)

![](/files/-MOb0GOxjd84N11UN3M0)

![](/files/-MOb0UIICNTh39Xrhjq6)

![](/files/-MOb0X3KnzvZCz6QMfpC)

9\. Similarly, you need to do for "variation types". Commerce -> Configuration -> Product variation types -> Edit Default -> Manage fields


---

# 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/drupal-8-9-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.
