Skip to content

Instantly share code, notes, and snippets.

@jedateach
Last active January 16, 2016 04:27
Show Gist options
  • Save jedateach/53753912c1276cfb5b0c to your computer and use it in GitHub Desktop.
Save jedateach/53753912c1276cfb5b0c to your computer and use it in GitHub Desktop.
Subscription Module Planning

Subscription

Subscription module for SilverStripe

  • Member has subscription.

  • Organisation has a subscription (list of members).

  • Subscription many_many Member.

  • Subscription has an expiry date.

  • Subscription period calculator.

  • Renewing a subscription updates the expiry date.

  • Subscription can be adjusted part way through. Difference is charged or credited.

  • Payment: pro-rata (before period) vs post payment (after period).

Different types / levels of subscription. Add-ons?

Actions performed when subscription is created or when it ends.

  • Custom by developer
  • Enable/disable page access
  • Remove/add member(s) to group
  • File access
  • Adjust permissions

User Actions

View current sub scription status. Update subscription. End subscription.

Notify when subscription is expring. Pay to renew. Or automatically pay and renew.

Cron tasks for updting subscriptions

Example use cases

Website member login is directly linked to subscription status. Organisation pays its members to be subscribed.

Future Possible Ideas

Free trial period

TODO / think about

Applications vs renewals - these may be different cases, (e.g.: 50% off your first year).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment