> For the complete documentation index, see [llms.txt](https://help.unitpay.ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.unitpay.ru/en/modules/cms-modules/drupal-8-9-commerce.md).

# 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
