Command Palette

Search for a command to run...

Getting Started with Robokassa Payment for Medusa (v2.0.0-beta)

In this document, you'll learn how to install and configure the Robokassa payment provider for Medusa.

Requirements

  • Medusa v2.17.2 or later
  • Node.js v20 or later
  • A Robokassa account – sign in or create one
  • Integration Module v0.1.0 or later

Installation

yarn add @gorgo/medusa-integration @gorgo/medusa-payment-robokassa@beta

Configuration

Add the provider configuration in your file of the Medusa admin application:

medusa-config.js
1// ...
2const ROBOKASSA_INTEGRATION_ID = "robokassa-1"
3
4module.exports = defineConfig({
5 // ...
6 plugins: [
7 // ...
8 {
9 resolve: "@gorgo/medusa-integration",
10 options: {
11 encryptionKey: process.env.INTEGRATION_ENCRYPTION_KEY,
12 providers: [
13 {
14 resolve: "@gorgo/medusa-payment-robokassa/providers/integration-robokassa",
15 id: ROBOKASSA_INTEGRATION_ID,
16 options: {},
17 },
18 ],
19 },
20 },
21 {
22 resolve: "@gorgo/medusa-payment-robokassa",
23 options: {},
24 },
25 ],
26 modules: [
27 // ...
28 {
29 resolve: "@medusajs/medusa/payment",
30 options: {
31 providers: [
32 {
33 resolve: "@gorgo/medusa-payment-robokassa/providers/payment-robokassa",
34 id: "robokassa",
35 options: {
36 id: ROBOKASSA_INTEGRATION_ID
37 }
38 },
39 ],
40 },
41 },
42 ],
43})

Add environment variables with your secret :

.env
INTEGRATION_ENCRYPTION_KEY=supersecret

Provider Options

Loading...

Webhook Setup

To properly handle payment notifications from Robokassa, configure the webhook URL in your Robokassa account as following:

Under shop settings in your Robokassa account, set the Method of sending data to Result Url to or and supply a Result Url in the following format:

https://{YOUR_MEDUSA_DOMAIN}/hooks/payment/robokassa_robokassa

Robokassa will send payment status updates to this URL, allowing Medusa to update the payment status accordingly.

Edited Jul 31, 2026·Edit this page