Module settings

  1. Go to the Drupal admin panel.

  2. In the top menu, select StoreYandex Pay.

  3. 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.
    • Mode: Allows you to enable debugging mode. If you select Test, money won't be charged from the card.
  4. At the bottom of the page, click Save.

  5. Set up the payment button display.

Payment button display

On the product page

To display the payment button on the product page:

  1. In the top menu, select StoreProductsProduct types.

  2. Next to the product, click the Box management link.

  3. 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

  4. Click Save.

  5. On the page that opens, click Save box changes.

  6. At the bottom of the page, click Save changes.

On the order page

To display the payment button on the order page:

  1. In the top menu, select StoreConfigurationOrder creation settings.

  2. Put the Yandex payment button panel in the Order creation section.

    image

  3. Click Save configuration.