Commerce License Billing provides advanced (prepaid, postpaid, prorated, plan-based, metered) recurring billing for licenses.
Dependencies: Commerce License, Advanced queue, Views Megarow.
Important: You need Entity API 1.3 or newer.
Getting started
- Go to admin/commerce/config/license/billing-cycle-types and add a billing cycle type.
- Create a product, select a license type, then below select your billing cycle type and billing type (prepaid or postpaid).
- Checkout the product. If you selected postpaid as the billing type, your product will be free.
- A billing cycle has now been opened (with the current start date, and the end date depending on your billing cycle type settings), along with a matching recurring order.
- When the billing cycle expires, the recurring order will be closed and charged for using Commerce Card on File, and a new billing cycle & order will be opened.
Relationship to Commerce License
Any license type can be used for recurring billing without changes.
A license is considered billable if its product has a billing cycle type
selected.
If the license type wants to have metered billing, it must implement the
CommerceLicenseBillingUsageInterface interface.