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

Provides Stripe integration with Drupal. All are welcome to help out.

Requires the Stripe PHP Library; be sure to download it from Stripe or by invoking composer install (Drupal 8).

Drupal 8

Since the module requires an external library, Composer must be used.

composer require "drupal/stripe"

The Drupal 8 version has been started from scratch. The idea is to keep this module simple providing the common Drupal elements that can be used by other contrib modules. New features can be added but following the same idea of being the API that other contribs can use.

Current features

  1. Exposes a new "Stripe" render element, using Stripe Elements
  2. Webhooks support triggering a Drupal Event that can be leveraged by contrib modules.
  3. Global configuration of Stripe test/live API keys.

Contrib based on this module

  • Stripe Webform integration - Allows to create simple, yet powerful donation/subscription forms.

Drupal 7

This currently is very basic. There's a simple form for testing purposes, that will charge a card. This is not ready for production environments! See the Roadmap to 1.0 here.

Current features

  1. Provides a new "Stripe Payment" form element type
  2. Webhooks integration
  3. Global configuration of Stripe test/live API keys
  4. Includes submodule for integration with Payment
  5. Integrates between Drupal users and Stripe Customers.
  6. Rules Events fired when a customer is updated or created
  7. Token replacements for Customer ID, Default Source, and other properties.
  8. Views integration between User accounts and Customer fields
  9. hook_customer_stripe_info() allows other modules to add properties to Stripe Customer object during create/update

Getting started

  1. Create a Stripe Account if you don't have one already.
  2. Download the latest Stripe PHP API Library into sites/all/libraries/stripe-php
  3. Enter the API keys from your Stripe Account into the Stripe Settings form (admin/config/stripe/settings)

Roadmap

After this is cleaned up some, we plan to make separate modules that integrate with Commerce, Pay and Ubercart.

NOTE: The stripe_commerce module that used to ship with this module has been removed. Work is taking place to make Commerce Stripe (3.x) the replacement, but as of this commit, both modules can be installed alongside each other; however, they do not yet share any Stripe data with each other.

Modules that extend Stripe

Supporting organizations: 
Original author
Additional features and refactoring
Additional features and support
Drupal 8 version of the module
Support

Project information

Downloads