• Модуль интеграций
  • Сообщество
  • Блог
Документация
Плагины и интеграцииВсе расширения для Medusa от сообществаСтартерыЗапускайте проекты быстрее с готовыми решениями
ЭкспертыПодберите специалиста для разработки и развития вашего проекта на MedusaКейсыПосмотрите примеры Medusa в продакшене и успешные внедрения
Представляем готовый к продакшену Medusa DTC Starter от Gorgo

26 августа 2026 г. · Продукт

Gorgo снижает затраты на адаптацию Medusa к локальным рынкам.

Мы разрабатываем плагины интеграции, осуществляем поддержку и развиваем сообщество разработчиков на Medusa в Telegram.

  • Ресурсы Medusa
  • Плагины и интеграции
  • Модуль интеграций
  • Стартеры
  • Эксперты
  • Кейсы
  • Medusa Чат в Telegram
  • Medusa Новости в Telegram
  • Документация Gorgo
  • Связаться с нами
  • TelegramGitHub
Плагины
H

Hyperswitch

Плагин платёжного процессора HyperSwitch для Medusa v2: единое оформление заказа, вебхуки, возвраты и настройка в панели администратора.

npm install medusa-payment-hyperswitch
Категория
Другое
Создано
Ayyan-shaikh
Версия
0.1.3
Последнее обновление
2 месяца назад
Ежемесячные загрузки
Загрузка данных
Звезды на Github
4
npmNPMGitHubGithub

HyperSwitch Payment Processor Plugin for Medusa

Medusa v2 payment plugin for HyperSwitch — unified checkout, webhooks, refunds, proxy support, and an admin configuration UI.

Features

  • Process payments through HyperSwitch's unified API
  • Multiple payment methods with a unified checkout experience
  • Webhook handling and payment status synchronization
  • Manual and automatic capture modes
  • Refund processing
  • Admin UI for API keys, proxy, customization, and logging

Prerequisites

  • Medusa v2.15+
  • Node.js v20+
  • A HyperSwitch account and API keys

Installation

Follow these steps in your Medusa store project (the app where you run ), not in this plugin repository.

Step 1: Create a Medusa application (if you don't have one)

Step 2: Install the plugin package

From your Medusa application root directory, install the plugin:

Or with another package manager:

This installs the plugin and its runtime dependencies (, , , and admin UI packages). Your Medusa app must already satisfy the plugin's peer dependencies.

Local development: To test unpublished changes from this repo, use after running in the plugin repo. See Local plugin development.

Step 3: Set the encryption key

Generate a 32-byte key for encrypting secrets stored by the plugin:

Add it to your :

HYPERSWITCH_HASH_KEY=your-generated-base64-key-here

Step 4: Configure Medusa

Update :

Step 5: Run migrations and start

Step 6: Configure in Admin

  1. Open the Medusa Admin panel (e.g. )
  2. Go to Extensions → Hyperswitch
  3. Enter your HyperSwitch API keys, profile ID, and environment
  4. Enable the payment provider for your region in Settings → Regions

Storefront Integration (Next.js Starter)

Use this plugin with the storefront repo:
https://github.com/Ayyanaruto/hyperswitch-medusa-storefront

Storefront environment variables

In your storefront project's , set:

Enable HyperSwitch in the target region

In Medusa Admin:

  1. Open Settings → Regions
  2. Select your region
  3. Add/enable hyperswitch payment provider
  4. Save changes

4) Test checkout from the storefront

  1. Start backend ( in your Medusa app)
  2. Start storefront ( in your Next.js app)
  3. Add a product to cart and proceed to checkout
  4. Select HyperSwitch payment method and place an order

5) Validate webhooks (recommended)

For reliable payment state updates, configure HyperSwitch webhooks to point to your Medusa backend webhook endpoint and verify events are received in backend logs.

Local plugin development

To work on the plugin itself and test it in a Medusa store:

In your Medusa store:

npx medusa plugin:add medusa-payment-hyperswitch

Keep running in the plugin repo during development so changes are republished automatically.

Publishing to npm

From the plugin repository:

The script runs the build automatically before publish.

Troubleshooting

  • Payment errors — Check Medusa server logs and the plugin's logging dashboard in Admin
  • Webhooks — Verify webhook URLs and signing in your HyperSwitch dashboard
  • API keys — Confirm sandbox vs production keys match your configured environment
  • Proxy — Configure proxy settings in the Admin UI if your server requires one

Resources

  • HyperSwitch Documentation
  • Plugin Repository
  • Medusa Plugin Guide
  • Report an Issue

License

MIT

Еще в этой категории

Посмотреть все
Другое
Gati logo

Gati

От Devx Commerce

Синхронизируйте Medusa с Gati ERP

Загрузка данных
npm
Другое
Product Reviews logo

Product Reviews

От Lambda Curry

Добавляйте рейтинги, отзывы и модерацию товаров

Загрузка данных
GitHubnpm
Другое
Variant Images logo

Variant Images

От Betanoir

Организуйте и загружайте варианты изображений в Medusa

Загрузка данных
GitHubnpm
1npx create-medusa-app@latest my-medusa-store
2cd my-medusa-store
npm install medusa-payment-hyperswitch
1yarn add medusa-payment-hyperswitch
2# or
3pnpm add medusa-payment-hyperswitch
openssl rand -base64 32
1import { loadEnv, defineConfig } from "@medusajs/framework/utils"
2
3loadEnv(process.env.NODE_ENV || "development", process.cwd())
4
5module.exports = defineConfig({
6 projectConfig: {
7 databaseUrl: process.env.DATABASE_URL,
8 http: {
9 storeCors: process.env.STORE_CORS!,
10 adminCors: process.env.ADMIN_CORS!,
11 authCors: process.env.AUTH_CORS!,
12 jwtSecret: process.env.JWT_SECRET || "supersecret",
13 cookieSecret: process.env.COOKIE_SECRET || "supersecret",
14 },
15 },
16 modules: [
17 {
18 resolve: "@medusajs/medusa/payment",
19 options: {
20 providers: [
21 {
22 id: "hyperswitch",
23 resolve: "medusa-payment-hyperswitch/providers/hyperswitch",
24 },
25 ],
26 },
27 },
28 ],
29 plugins: [
30 {
31 resolve: "medusa-payment-hyperswitch",
32 options: {
33 key: process.env.HYPERSWITCH_HASH_KEY,
34 },
35 },
36 ],
37})
1npx medusa db:migrate
2npm run dev
1NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY=pk_
2MEDUSA_BACKEND_URL=http://localhost:9000
3NEXT_PUBLIC_BASE_URL=http://localhost:8000
4NEXT_PUBLIC_HYPERSWITCH_KEY=pk_snd_
1git clone https://github.com/Ayyanaruto/hyperswitch-medusajs-plugin.git
2cd hyperswitch-medusajs-plugin
3pnpm install
4pnpm build
5npx medusa plugin:publish
1pnpm build
2npm publish