Search for a command to run...
In this document, you'll learn how to install and configure the Robokassa payment provider for Medusa.
yarn add @gorgo/medusa-payment-robokassa# ornpm install @gorgo/medusa-payment-robokassa
Add the provider configuration in your file of the Medusa admin application:
// ...module.exports = defineConfig({// ...modules: [{resolve: "@medusajs/medusa/payment",options: {providers: [{resolve: "@gorgo/medusa-payment-robokassa/providers/payment-robokassa",id: "robokassa",options: {merchantLogin: process.env.ROBOKASSA_MERCHANT_LOGIN,hashAlgorithm: process.env.ROBOKASSA_HASH_ALGORITHM,password1: process.env.ROBOKASSA_PASSWORD_1,password2: process.env.ROBOKASSA_PASSWORD_2,testPassword1: process.env.ROBOKASSA_TEST_PASSWORD_1,testPassword2: process.env.ROBOKASSA_TEST_PASSWORD_2,capture: false, // default is trueisTest: true, // default is false},}]}}]})
Add environment variables with your shop identifier , hash calculation algorithm , secret passwords , , and secret passwords for testing , :
ROBOKASSA_MERCHANT_LOGIN=test-shopROBOKASSA_HASH_ALGORITHM=md5ROBOKASSA_PASSWORD_1=supersecretROBOKASSA_PASSWORD_2=supersecretROBOKASSA_TEST_PASSWORD_1=supersecretROBOKASSA_TEST_PASSWORD_2=supersecret
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:
Robokassa will send payment status updates to this URL, allowing Medusa to update the payment status accordingly.
Default:
Default:
Default: