Skip to content

Subscription with automatic (cron based) Expiration / Cancellation

M. Dent requested to merge dentm42/addons:cart-subautocancel into dev

Add auto-expiration/cancellation with logic for time-based "subscriptons" to items in the cart.

Upon expiration, the item rollback/cancellation commands will be automatically run. The subscription logic is "hookable" like all other aspects of the cart system to allow other developers to reuse it for new and innovative item types that may be developed in the future.

NOTE: This update does NOT include changes for recurring billing/payments. All current "vanilla" payment methods are "one time."

With the "vanilla" submodules, these changes allow merchants/admins to set a time limit on changes made by the "Hubzilla Services" module (add to privacy group, add connection, change service class). When the time limit expires, the system will automatically run the "deactivation" commands associated with that item (eg, remove from privacy group / remove connection / change service class).

The logic allows for the extension of existing subscriptions - but there are currently no recurring payment methods implemented or methods for automatically extending subscriptions.

Merge request reports