Search for a command to run...
In this document, you'll learn how to install and configure the YooKassa payment provider for Medusa.
yarn add medusa-payment-yookassa# ornpm install medusa-payment-yookassa
Add the provider configuration in your file of the Medusa Admin application:
// ...module.exports = defineConfig({// ...modules: [{resolve: "@medusajs/medusa/payment",options: {providers: [{resolve: "medusa-payment-yookassa/providers/payment-yookassa",id: "yookassa",options: {shopId: process.env.YOOKASSA_SHOP_ID,secretKey: process.env.YOOKASSA_SECRET_KEY,capture: true,paymentDescription: "Test payment",useReceipt: true,useAtolOnlineFFD120: true,taxSystemCode: 1,taxItemDefault: 1,taxShippingDefault: 1},}]}}]})
Add environment variables with your shop identifier and a secret API key :
YOOKASSA_SHOP_ID=1234567YOOKASSA_SECRET_KEY=live_secret_api_key
To properly handle payment notifications from YooKassa, configure the webhook URL in your YooKassa account as following:
Change with your medusa store domain.https://{YOUR_MEDUSA_DOMAIN}/hooks/payment/yookassa_yookassa
YooKassa will send payment status updates to this URL, allowing Medusa to update the payment status accordingly.
Default:
Default:
Default: