npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@sgftech/medusa-payment-stripe-subscription

v0.0.53

Published

A plugin for stripe subscriptions

Readme

Medusa Payment Stripe Subscription Plugin

The Medusa Payment Stripe Subscription plugin provides seamless integration with the Stripe payment gateway for managing subscription-based payments in your Medusa e-commerce store.

Installation

To install the Medusa Payment Stripe Subscription plugin, follow these steps:

  1. Ensure that you have Medusa installed and set up in your project.
  2. Run the following command to install the plugin:
npm install medusa-payment-stripe-subscription
  1. Configure the plugin by adding the following environment variables to your project:
STRIPE_API_KEY=your_stripe_api_key
  1. Add the plugin to your Medusa configuration file (medusa-config.js):

const stripeSubscriptionConfig = {
  api_key: process.env.STRIPE_API_TEST_KEY,
  webhook_secret: process.env.STRIPE_API_WEBHOOK_TEST_SECRET,
  /**
   * Use this flag to capture payment immediately (default is false)
   */
  capture: true,
  /**
   * set `automatic_payment_methods` to `{ enabled: true }`
   */
  automatic_payment_methods: { enabled: true },
  /**
   * Set a default description on the intent if the context does not provide one
   */
  payment_description: "Payment for order",
  /**
   * The delay in milliseconds before processing the webhook event.
   * @defaultValue 5000
   */
  webhook_delay: 5000,
  /**
   * The number of times to retry the webhook event processing in case of an error.
   * @defaultValue 3
   */
  webhook_retries: 3,

  product_url_prefix: process.env.PRODUCT_URL_PREFIX ?? "/products",
  shop_base_url: process.env.SHOP_DOMAIN ?? "http://localhost:8000",
  subscription_interval_period:
      parseInt(process.env.SUBSCRIPTION_PERIOD) ?? 30,
  cancel_at_period_end: true
};
plugins:[
...
 {
      resolve: "medusa-payment-stripe-subscription",
      options: stripeSubscriptionConfig
  },
...]

Usage

Once the Medusa Payment Stripe Subscription plugin is installed and configured, you can start using it to handle subscription payments in your Medusa store. Here are some examples of how to use the plugin:

Contributing

Contributions to the Medusa Payment Stripe Subscription plugin are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.

License

This plugin is licensed under the MIT License.