A Discourse plugin that allows payments and subscription management via Stripe.
Go to file
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
.github/workflows DEV: Add GitHub Actions for linting/testing 2020-09-01 20:25:44 -05:00
app REFACTOR: Simplify controller setup (#24) 2020-10-21 13:36:31 -05:00
assets REFACTOR: Simplify controller setup (#24) 2020-10-21 13:36:31 -05:00
config REFACTOR: Simplify controller setup (#24) 2020-10-21 13:36:31 -05:00
db/migrate REFACTOR: Use models to store data (#11) 2020-05-22 11:20:05 -05:00
lib REFACTOR: Use the Prices API in place of Plans (#17) 2020-07-15 08:44:40 -05:00
spec REFACTOR: Simplify controller setup (#24) 2020-10-21 13:36:31 -05:00
test/javascripts DEV: Fix tests 2020-07-28 15:40:16 -05:00
.eslintrc DEV: Set up dependencies for workflows 2020-09-01 20:31:38 -05:00
.gitignore DEV: Update to new prettier standards 2020-09-16 09:53:50 -05:00
.rubocop.yml DEV: Ignore foreign key migration in rubocop 2020-10-20 11:27:32 -05:00
Gemfile DEV: Fix gemfile 2020-09-01 20:33:29 -05:00
Gemfile.lock FIX: Loading state persists after bad card entered (#22) 2020-10-19 20:54:30 -05:00
LICENSE Initial commit 2017-01-30 10:52:35 +11:00
README.md REFACTOR: Use models to store data (#11) 2020-05-22 11:20:05 -05:00
jsapp add success handler 2019-09-12 07:43:27 +10:00
package.json DEV: Set up dependencies for workflows 2020-09-01 20:31:38 -05:00
plugin.rb FEATURE: Add support for 3D Secure payments (#19) 2020-07-24 15:07:18 -05:00
translator.yml DEV: Switch from Transifex to Crowdin 2020-07-16 14:01:25 +02:00
yarn.lock DEV: Update to new prettier standards 2020-09-16 09:53:50 -05:00

README.md

Discourse Subscriptions

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