This project is not covered by Drupal’s security advisory policy.
The main purpose of this module is process service payments with Stripe, allow Drupal users to subscribe to Stripe plans and have one or more Drupal roles.
This module provides the Stripe Payment block. We add this block to the node and entities where we can add the price id for that product or entity. The price id will be displayed as a button.
The button redirects customers to a Stripe-hosted payment page to complete their purchase. After the transaction successfully the role is assigned to the user.
Getting started
- Create Account in Stripe.
- Create products and prices in Dashboard Stripe.
- Configure a tax rate.
- Configure a webhook with events (invoice.payment_succeeded, customer.subscription.deleted).
- Download and install this module with composer require "drupal/stripe_gateway".
- In (admin/config/services/ppss) configure content types to enable pay button
- In (admin/config/services/ppss/stripe) enter the API keys.
- Add the "Button pay of subscription" block for the entities where you want to implement the stripe payment.
- Add permissions to show the block.
- Add/update that entity with price ID and role ID.
Requirements
This module requires the Drupal module PPSS.
Status
Now is production ready, but be careful because needs more third party testing.
Additional Requirements
For development purposes, install the Stripe PHP SKD by running: $ composer require stripe/stripe-php
Similar projects
- Stripe Pay. Very similar but for products purchases.
- Stripe Webhooks. Similar functionality.
- Stripe API. Similar functionality.
Supporting this Module
If you have a Patreon, OpenCollective, etc. you can put links here to describe how people can support development.
Community Documentation
A great place to add links to YouTube walkthroughs, external documentation, or a demo site (use DrupalPod!).
You may continue to put additional information below here, if there are other things you think people need to know about your module!
Project information
- Project categories: E-commerce
- Ecosystem: Platform of Payments and Sales Simple
1 site reports using this module
- Created by agomezguru on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
Improves code best practices
Development version: 1.1.x-dev updated 2 Jan 2025 at 16:42 UTC



