Commit Graph

26 Commits

Author SHA1 Message Date
Jarek Radosz d33cf2921e
DEV: Update linting (#189) 2024-01-16 17:51:44 +01:00
David Taylor 4e1a17c40c
DEV: Introduce syntax_tree for ruby formatting (#144) 2022-12-29 13:35:06 +01:00
Blake Erickson 8762d6742e
FIX: Import script confirmation flag logic (#126)
The import script has a prompt asking if this is a "procourse" import or
not, but the logic for handling the answer is backwards and will
incorrectly set the `procourse_import` flag to `true`.

This commit also fixes a minor typo.
2022-06-22 17:51:14 -06:00
Kim Miller 2c8c04c109
- Subscriptions import Procourse support (#89)
- Stripe pagination support
2021-12-17 11:00:19 -07:00
haroldus- ccd9454da8
FIX: Allow more than 10 Stripe records (#62) 2021-05-22 20:30:09 -05:00
Justin DiRose c9ff55b46a
REFACTOR: Use the Prices API in place of Plans (#17)
Stripe has a newer API called Prices where you can create a price for any product and it can either be recurring or one-time. The easy part is existing Plans work with the Prices API by passing a Plan ID, but objects are returned in the slightly-different Prices API object format.

This commit is a refactor to the new API to handle the data in its new form, and lays the foundation for a one time payment plan to be added to any subscriptions product.
2020-07-15 08:44:40 -05:00
Justin DiRose fb4f50478d
REFACTOR: Use engine to load files, add constraint (#14) 2020-07-06 11:11:04 -05:00
Justin DiRose fb4fac197b
REFACTOR: Use models to store data (#11)
* REFACTOR: Use api to add subscribe link

* FIX: I18n subscribe link

* REFACTOR: Use models to store some data

This enables the plugin to show only subscription information which was
generated on Discourse. Subscription data storage is limited to the
external identifiers Stripe generates so we can interact with the API.

* DEV: Test/linting fixes/rake task
2020-05-22 11:20:05 -05:00
Rimian Perkins b397ba5a68 name space module 2019-12-04 11:23:45 +11:00
Rimian Perkins 0b908e4da8 rename engine file 2019-12-04 09:44:20 +11:00
Rimian Perkins 3f90518e18 controller spec runs 2019-09-11 18:32:09 +10:00
Rimian Perkins ac267fabaf basic route and template 2019-09-11 17:13:12 +10:00
Rimian Perkins 78914e0511 Add new plugin files.
This gets the plugin running again without name collisions. A solid starting point
2019-09-11 13:19:07 +10:00
Rimian Perkins 6f826ce7a0 rubocop correct 2019-08-27 20:04:02 +10:00
Angus McLeod 8453d5cc03 various 2018-06-25 18:14:50 +10:00
Rimian Perkins b94a01359a require the job in plugin 2017-04-27 16:35:28 +10:00
Rimian Perkins 999b106b65 the award job adds the user to a group 2017-04-27 14:51:47 +10:00
Rimian Perkins 3a428d17f0 name space the rails things 2017-02-24 13:23:11 +11:00
Rimian Perkins 1527bbd0b9 this is an old file yo 2017-02-15 13:04:32 +11:00
Rimian Perkins 0c6b77b93a refactor module name space 2017-02-15 13:03:58 +11:00
Rimian Perkins 1a20224481 rename engine file 2017-02-15 12:36:38 +11:00
Rimian Perkins 6867f584be merge in staging 2017-02-14 13:39:14 +11:00
Rimian Perkins b2321ba965 move payment button into choice page and make a link 2017-02-09 12:17:25 +11:00
Rimian Perkins 14e81d394b add test app 2017-02-06 12:30:56 +11:00
Rimian Perkins a1d1c122ed move into engine.rb 2017-02-06 12:11:48 +11:00
Rimian Perkins 892736deff This prevents error: MiniProfilerRails initialized twice. 2017-01-31 14:01:11 +11:00