Подключите оплату через Halkbank
This plugin is a payment plugin for MedusaJS that allows you to accept payments from Halkbank MK. Halkbank uses Nestpay as a payment gateway, so the plugin can likely be adjusted to work with other banks that rely on Nestpay.
See Halkbank Payment Plugin for MedusaJS - Frontend for the frontend component.
The plugin expects that the payment and cart module are available in the project.
Install the plugin:
Add the plugin to your Medusa project:
1plugins: [2 {3 resolve: "@sradevski/medusa-payment-halkbank",4 options: {}5 },6 ]Add the Halkbank provider to payment module:
1{2 resolve: "@medusajs/medusa/payment",3 options: {4 providers: [5 {6 resolve: "@sradevski/medusa-payment-halkbank/providers/halkbank",7 id: "halkbank",8 name: "Halkbank",9 options: {10 clientId: process.env.HALKBANK_CLIENT_ID,11 clientKey: process.env.HALKBANK_CLIENT_KEY,12 },13 },14 ],15 },16 },The backend is ready to accept calls from the frontend component.