This project is not covered by Drupal’s security advisory policy.

This module extends Subscription Manager by connecting it to Stripe.

With this module, you can use Stripe to sell subscriptions to your Drupal site. When a Stripe subscription is created, updated, or deleted, a Stripe webhook will send an event to Drupal, which will create or update a corresponding Subscription entity in Drupal.

Installation:

  1. Use composer to install this module
  2. Enable it
  3. Configure the Stripe API module (a dependency) by adding API Keys and Webhook signing secrets at /admin/config/services/stripe_api
  4. Configure additional Subscription Manager settings at /admin/config/services/subscription_manager
  5. On /admin/config/services/subscription_manager, click "Sync plans from connectors." This will connect to your Stripe account, look for plans, and create corresponding Subscription Plan entities in Drupal
  6. Visit /admin/content/subscription-plan to see the plans you've synced. Edit the plans and select which Drupal roles should be granted to users who have active subscriptions to that plan.
  7. On Stripe, create a webhook that points to your Drupal site' /stripe/webhook path.
  8. On Drupal, place the menu links that are provided by the subscription manager module. For instance: My subscriptions (/user/my-subscriptions), Subscribe (/subscription-manager/subscribe)
  9. When you create a payment link for Stripe, you may choose the redirect the user to https://www.yoursite.com/stripe/login?session_id={CHECKOUT_SESSION_ID}. This will immediately create a Drupal account and login the user in after purchase.
Supporting organizations: 

Project information

Releases