Module settings
-
Go to the Drupal admin panel.
-
In the top menu, select Store → Yandex Pay.
-
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.
-
At the bottom of the page, click Save.
-
Set up the payment button display.
Payment button display
On the product page
To display the payment button on the product page:
-
In the top menu, select Store → Products → Product types.
-
Next to the product, click the Box management link.
-
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
.
-
-
Click Save.
-
On the page that opens, click Save box changes.
-
At the bottom of the page, click Save changes.
On the order page
To display the payment button on the order page:
-
In the top menu, select Store → Configuration → Order creation settings.
-
Put the Yandex payment button panel in the Order creation section.
-
Click Save configuration.