@gorgo/medusa-payment-stripe
v2.1.0
Published
Stripe payment provider for Medusa
Maintainers
Readme
Plugin Features
- Full Integration with Stripe: Connect your store to Stripe for secure and reliable payments.
- One-Step & Two-Step Payments: Autocapture or authorization/hold payment flows.
- Refunds & Cancellations: Refund and order cancellation support.
- Webhook Notifications: Real-time payment status updates with signature verification.
- Express Checkout: Apple Pay, Google Pay and Link buttons for the storefront. The buyer pays without filling in the checkout form, the address comes from their wallet, and the shipping cost updates for it.
- Detailed Logging: Request and response logs for debugging and support in development mode.
- Full Test Coverage: Comprehensive unit and integration tests covering core flows and edge cases.
- Storefront Example: A complete Next.js storefront ready to use as a reference.
- Integration module : Configure this plugin directly in the Medusa Admin application – no editing configuration files or redeploying the store.
Integration Module: This plugin supports the Integration module, which lets store administrators configure it directly in the Medusa Admin application instead of editing configuration files and redeploying the store. Sensitive values are encrypted, and settings are validated before they take effect.
What is Stripe
With Stripe, the buyer pays in Stripe's own payment form, so the store never handles card details. Stripe accepts payments in more than 130 currencies.
💬 Support & Community
Got questions or ideas about the plugin? Join the Telegram support chat, @gorgojs_chat.
Connect with other Medusa developers on Telegram in @medusajs_chat.
The Maintenance page explains how we test, update and fix the plugin.
Requirements
- Medusa v2.21.0 or later
- Node.js v22.23.4, v24.22.1, v26.12.1 or later
- A Stripe account and its API keys from Developers → API keys in the Stripe Dashboard
- Integration Module
Installation
yarn add @gorgo/medusa-integration @gorgo/medusa-payment-stripe
# or
npm install @gorgo/medusa-integration @gorgo/medusa-payment-stripeConfiguration
Register the plugin and the Integration Module in medusa-config.ts:
const STRIPE_INTEGRATION_ID = "stripe-1"
module.exports = defineConfig({
plugins: [
{
resolve: "@gorgo/medusa-integration",
options: {
encryptionKey: process.env.INTEGRATION_ENCRYPTION_KEY,
providers: [
{
resolve: "@gorgo/medusa-payment-stripe/providers/integration-stripe",
id: STRIPE_INTEGRATION_ID,
options: {},
},
],
},
},
{
resolve: "@gorgo/medusa-payment-stripe",
options: {},
},
],
modules: [
{
resolve: "@medusajs/medusa/payment",
options: {
providers: [
{
resolve: "@gorgo/medusa-payment-stripe/providers/payment-stripe",
id: "stripe",
options: { id: STRIPE_INTEGRATION_ID },
},
],
},
},
],
})Set INTEGRATION_ENCRYPTION_KEY to a long random string, for example the output of openssl rand -hex 32. The Integration Module derives the key that encrypts secret settings, such as API keys, from it.
Then restart the server and configure the integration in Medusa Admin under Settings → Integrations → Stripe.
Replacing the Core Stripe Provider
The plugin takes over from Medusa's @medusajs/payment-stripe without a data migration. It keeps the provider ID pp_stripe_stripe and the webhook URL /hooks/payment/stripe_stripe, so payments created by the core provider are still captured and refunded. See Switch from Medusa's Stripe Provider for the steps.
Documentation
The complete installation, configuration, and usage guide for this plugin is available on the Gorgo documentation website.
License
Licensed under the MIT License.
