Justin DiRose 3a5078ded6
REFACTOR: Simplify controller setup (#24)
The code in the plugin needed a dramatic cleanup. This refactor collapses the Plan/Product/Subscription controllers on the backend into one new controller: `SubscribeController`.

This reduces N+1 calls to the back end during the subscription process and simplifies use of the code. 

I've also removed a bunch of dead code and refactored some logic into methods for easier readability. No feature/functionality changes in this commit; only refactoring. However, refactoring will allow for implementation of better anonymous user handling, so this is largely a foundation to enable making that change.
2020-10-21 13:36:31 -05:00
2020-07-28 15:40:16 -05:00
2020-09-01 20:33:29 -05:00
2019-09-12 07:43:27 +10:00
2017-01-30 10:52:35 +11:00

Discourse Subscriptions

Please see the topic on Discourse Meta for more information about this plugin: https://meta.discourse.org/t/discourse-subscriptions-plugin/140818

Description
A Discourse plugin that allows payments and subscription management via Stripe.
Readme MIT 5.8 MiB
Languages
JavaScript 48%
Ruby 47.4%
SCSS 4.6%