Coder Social home page Coder Social logo

drupal-commerce_recurring's Introduction

Provides recurring billing for Drupal Commerce, powered by Advanced queue.

The successor to Commerce Recurring and Commerce License Billing for D7.

Features:

  • Configurable billing intervals (charge every N days/weeks/months/years).
  • Fixed and rolling interval types (charge on the 1st of the month VS 1 month from the subscription date)
  • Prepaid and postpaid payment types (charge at the beginning or at the end of the billing period).
  • Free trial of any interval (14 days followed by a regular monthly subscription, etc)
  • Prorating (adjusting the charged price based on the duration of its usage)
  • Usage tracking (track bandwidth and charge per GB, etc).

Use cases

  1. Recurring membership (via commerce_license)

Prepaid billing for a license (usually of type "role").

  1. Recurring SaaS subscription

Postpaid billing, with optional usage, for a license.

  1. Donations

Prepaid billing for a product variation (no license), or an order item without a purchasable entity. Customers can usually select between multiple billing schedules (monthly/yearly, etc).

Future use cases: Physical products (Dollar Shave Club, etc)

Setup

  1. Go to /admin/commerce/config/billing-schedules/ and create a billing schedule.
  2. Edit your product variation type and enable the "Allow subscriptions" trait.
  3. Create a product variation with a "Subscription type" and a "Billing schedule" selected.

That's it! Each time your product variation is purchased, a subscription will be created for it. By default, subscriptions are renewed on cron. This can be changed to a Drush/Drupal Console daemon by editing the queue at /admin/config/system/queues/manage/commerce_recurring.

Payment gateway requirements

The module requires an on-site payment gateway such as Commerce Braintree. On-site gateways allow using tokenized payment methods for repeated charges, avoiding the need to store sensitive information such as credit card numbers. The "Example (On-site)" payment gateway provided by commerce_payment_example can be used for testing purposes.

drupal-commerce_recurring's People

Contributors

berenddeboer avatar bojanz avatar facine avatar heddn avatar joachim-n avatar jsacksick avatar larowlan avatar martinhej avatar vasike avatar yanniboi avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.