---
metadata:
  - name: generator
    content: Diplodoc Platform v5.57.3
alternate:
  - https://pay.yandex.ru/docs/en/cms/advantshop/module-setup.md
  - https://pay.yandex.ru/docs/ru/cms/advantshop/module-setup.md
  - href: https://pay.yandex.ru/docs/en/cms/advantshop/module-setup.md
    type: text/markdown
    title: Markdown version
  - href: https://pay.yandex.ru/docs/en/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. Get the data that's required for integration:

   1. Register in the [Yandex Pay console](https://pay.yandex.ru/docs/en/console/index.md).
   1. Go to the [console settings](https://console.pay.yandex.ru/settings).
   1. In the **Merchant API Yandex Pay keys**, click **Issue key**. Save the key value.
   1. Copy and save the merchant ID from the **Merchant ID** section.
   1. Click **Save**.

1. Go to the AdvantShop admin panel.
1. In the left menu, open the **Modules** section.
1. On the **Installed modules** tab, select the **Yandex Pay Checkout** module.
1. Configure the main settings on the **General** tab:

   * **Callback URL**: A technical address for integration. Specify it in the Yandex Pay [console settings](https://console.pay.yandex.ru/settings) in the **Callback URL** section.
   * **Test mode**: Used for debugging and testing integration. To work in normal mode, disable this option.
   * **Merchant ID**: The merchant ID obtained at step 1.4.
   * **API key**: The key obtained at step 1.3.
   * **Button color**: The appearance of the button on the client's side.
   * **Button width in the product card**, **Button width in the cart**, **Button width in the order**: Sets the button width.

      * **Automatically**: The width is set automatically, but does not exceed 280 px.
      * **Fit the container**: The button fits the width of the parent block.

      ![image](_assets/settings.png)

1. In the top-right corner, click **Save**.

## Delivery settings {#delivery-settings}

In this section, you can specify the delivery methods used when the user pays via Yandex Pay. The methods take into account all the set restrictions, such as by city, country, or product category. Pickup points are shown on Yandex Maps, and the delivery cost is calculated using integrated services.

{% note info %}

The city, country, and region restriction doesn't work for delivery methods with pickup options. There's no such restriction for methods that use courier delivery.

{% endnote %}

To add a delivery method:

1. In the module settings, go to the **Delivery** tab.
1. Click **Add**.
1. Select a delivery method from the list.
1. Specify the available payment methods:

   * **Card**: The user pays by a card that's linked to a Yandex account.
   * **Split**: The user pays in installments using the [Yandex Split](https://yandex.ru/support/split/index.html) service.
   * **Cash on delivery**: The user pays in cash on receipt of the order.
   * **Card on delivery**: The user pays by card on receipt of the order.

1. Click **Add**.

To edit or delete delivery methods, click the "pencil" or "x" icon:

![image](_assets/delivery-methods.png)
