Justin DiRose
9c46794e80
DEV: Remove deprecations & improve error handling ( #12 )
...
- Replace deprecated methods on client
- Fix broken dropdowns due to select kit 2 upgrade
- Graceful error handling when Stripe keys are not configured but plugin enabled
2020-05-28 10:32:57 -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
41b0667350
fix rubocop newer version
2019-12-12 09:59:38 +11:00
Rimian Perkins
b397ba5a68
name space module
2019-12-04 11:23:45 +11:00
Rimian Perkins
57a18f5a4e
whoops did not set currency
2019-11-30 17:24:49 +11:00
Rimian Perkins
709aebb593
set the currency in the plan
2019-11-30 16:39:28 +11:00
Rimian Perkins
3b7ff90672
user removed from the group in admin
2019-11-29 10:37:32 +11:00
Rimian Perkins
2eab43d4a0
delete customer when subscription destroyed
2019-11-29 08:00:13 +11:00
Rimian Perkins
298e70b32a
delete customer record
2019-11-28 20:44:38 +11:00
Rimian Perkins
3e4fd76891
show product and plan nickname in admin
2019-11-26 12:55:49 +11:00
Rimian Perkins
6590d8051c
delete subscriptions in admin
2019-11-14 10:51:04 +11:00
Rimian Perkins
e3ac6f7dac
date format and product description
2019-11-01 12:30:19 +11:00
Rimian Perkins
603ddc354b
plan can be active or not
2019-10-24 10:02:31 +11:00
Rimian Perkins
922dee581c
fix bugs in create plans
2019-10-23 15:55:06 +11:00
Rimian Perkins
a94287434d
plans have group names
2019-10-23 11:50:54 +11:00
Rimian Perkins
c6bf9ca4d3
fix trial period
2019-10-23 10:16:17 +11:00
Rimian Perkins
2179e3d280
fix statement descriptor param
2019-10-22 09:24:54 +11:00
Rimian Perkins
c6dd47d328
templates, plans
2019-10-21 15:28:45 +11:00
Rimian Perkins
b05b03e25b
fix up forms and requests to plan api
2019-10-17 20:34:26 +11:00
Rimian Perkins
e2b915b905
plans and products
2019-10-17 12:07:06 +11:00
Rimian Perkins
d02ba3ef6a
meta data
2019-10-16 21:06:19 +11:00
Rimian Perkins
496f2b9706
save the product
2019-10-16 14:15:01 +11:00
Rimian Perkins
e2f1f0f523
destroy plans
2019-10-16 11:22:58 +11:00
Rimian Perkins
1bedc1ba2f
destroy products
2019-10-15 23:14:04 +11:00
Rimian Perkins
23cb6ef93e
create the products
2019-10-15 21:50:30 +11:00
Rimian Perkins
e51aa5f6f0
products admin route and basic pages
2019-10-15 13:18:25 +11:00
Rimian Perkins
16513e29ea
list plans in admin
2019-10-14 12:36:46 +11:00
Rimian Perkins
91045583ad
namespace subscriptions controller
2019-10-10 13:09:24 +11:00
Rimian Perkins
8cc4f880eb
name space admin controller
2019-10-10 12:08:52 +11:00
Rimian Perkins
6f9195a7d4
Create Plans
...
* rescue and respond to error from stripe
* save plan name and id
2019-10-08 15:55:38 +11:00
Rimian Perkins
d4afe93a5d
delete plans
2019-09-25 13:20:28 +10:00
Rimian Perkins
1b232a1bd4
list plans
2019-09-25 11:18:11 +10:00
Rimian Perkins
bfdc8a5691
spec the plans
2019-09-24 20:57:42 +10:00
Rimian Perkins
a2d120c8b5
save plan model
2019-09-24 20:44:51 +10:00
Rimian Perkins
0d82bcf37e
Plans, subscriptions
...
* Plans controller
* Subscription controller
* Clean admin controller
* Ember Plans route
* Index page
* New Plans
* Translations
2019-09-24 16:04:42 +10:00
Rimian Perkins
e1ed1a41b0
add initial controllers
2019-09-23 17:53:05 +10:00