---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://pay.yandex.ru/docs/en/cms/drupal/module-setup.md
  - https://pay.yandex.ru/docs/ru/cms/drupal/module-setup.md
  - href: en/cms/drupal/module-setup.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://pay.yandex.ru/docs/en/llms.txt

# Module settings

1. Go to the Drupal admin panel.
1. In the top menu, select **Store** → **Yandex Pay**.
1. Configure the main module settings:

   * **Store name** in Yandex Pay.
   * **A list of domains where the button should be displayed**.
   * **Callback URL**.
   * **Merchant ID**: The merchant's Yandex Pay ID that you'll receive after you submit a connection request.
   * **API key**: The key for request identification. To manage the keys, go to the [Yandex Pay console](https://console.pay.yandex.ru/settings).
   * **Mode**: Allows you to enable debugging mode. If you select **Test**, money won't be charged from the card.

1. At the bottom of the page, click **Save**.
1. [Set up](#button-settings) the payment button display.

## Payment button display {#button-settings}

### On the product page {#product-page}

To display the payment button on the product page:

1. In the top menu, select **Store** → **Products** → **Product types**.
1. Next to the product, click the **Box management** link.
1. Add a new box with the parameters:

   * **Tag**: The name of the box.
   * **Machine name**: Filled out automatically. To change it, click **Edit** next to the name.
   * **Box type**: `Yandex payment button`.
   * **Widget**: `Yandex payment button`.

      ![image](_assets/product-button.png)

1. Click **Save**.
1. On the page that opens, click **Save box changes**.
1. At the bottom of the page, click **Save changes**.

### On the order page {#order-page}

To display the payment button on the order page:

1. In the top menu, select **Store** → **Configuration** → **Order creation settings**.
1. Put the **Yandex payment button** panel in the **Order creation** section.

   ![image](_assets/order-button.png)

1. Click **Save configuration**.
