Search for a command to run...
In this document, you’ll learn how to install and configure the T-Kassa payment provider by T-Bank for Medusa.
yarn add @gorgo/medusa-payment-tkassaAdd the provider configuration in your file of the Medusa admin application:
medusa-config.js1# ...2module.exports = defineConfig({3 # ...4 modules: [5 {6 resolve: "@medusajs/medusa/payment",7 options: {8 providers: [9 {10 resolve: "@gorgo/medusa-payment-tkassa/providers/payment-tkassa",11 id: "tkassa",12 options: {13 terminalKey: process.env.TKASSA_TERMINAL_KEY,14 password: process.env.TKASSA_PASSWORD,15 capture: true,16 useReceipt: true,17 ffdVersion: "1.05",18 taxation: "osn",19 taxItemDefault: "none",20 taxShippingDefault: "none"21 },22 }23 ]24 }25 }26 ]27})
Add environment variables with your shop identifier and secret from your T-Business account:
.env1TKASSA_TERMINAL_KEY=1234567892TKASSA_PASSWORD=supersecret
To properly handle payment notifications from T-Kassa, configure webhooks in your T-Business account as following:
Navigate to → → Choose your shop → → Choose or Terminal → Click to open the setting window
Choose to send Notifications
Add a URL like:
Change with your medusa store domain.
Default:
Default: