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
cc389d2423
add the user to the group if subscription is completing
2020-01-26 10:49:51 +11:00
Rimian Perkins
ebe891c09b
fix event hash for subscription
2020-01-25 15:06:05 +11:00
Rimian Perkins
83e7ae2711
spec unsubscribe webhook
2020-01-15 10:20:21 +11:00
Rimian Perkins
dca6c7ddc9
deletes the customer on subscription cancel
2020-01-14 23:38:26 +11:00
Rimian Perkins
95413ee161
get the payload, signature and secret for webhook
2020-01-14 15:37:53 +11:00
Rimian Perkins
0543b3a6a3
basic hook
2020-01-13 11:10:06 +11:00
Rimian Perkins
431279a4f7
Add empty webhook url and upgrade stripe gem
2020-01-10 10:24:09 +11:00
Rimian Perkins
52db93ecd8
user payments page
2019-12-17 16:31:58 +11:00
Rimian Perkins
fcfd2be41b
create a customer when a payment happens
2019-12-17 10:03:00 +11:00
Rimian Perkins
7d3ca0421a
rm old donation form
2019-12-16 10:59:59 +11:00
Rimian Perkins
4b334a69b5
remove subscribe index
2019-12-13 11:54:32 +11:00
Rimian Perkins
57fb508514
buttons for selecting price and one time payment
2019-12-13 10:41:14 +11:00
Rimian Perkins
831e64317b
refactor models, routes and buttons
2019-12-12 12:59:26 +11:00
Rimian Perkins
80b721ddd8
rename some settings
2019-12-04 11:53:05 +11:00
Rimian Perkins
b397ba5a68
name space module
2019-12-04 11:23:45 +11:00
Rimian Perkins
d8a3ae5554
fix broken unauthenticated page
2019-12-03 14:31:15 +11:00
Rimian Perkins
bdba7686d3
add new table
2019-12-03 13:03:10 +11:00
Rimian Perkins
a95c119bcf
fix paths in request specs
2019-12-03 11:48:12 +11:00
Rimian Perkins
949e32e4fb
fix path to fabricators
2019-12-03 11:01:44 +11:00
Rimian Perkins
57a18f5a4e
whoops did not set currency
2019-11-30 17:24:49 +11:00
Rimian Perkins
a371d2baf6
fix broke test
2019-11-30 16:55:24 +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
36865c5ea1
remove the user from the group in user controller
2019-11-29 09:24:56 +11:00
Rimian Perkins
ad77fc749b
test subcription deletes
2019-11-29 08:15:46 +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
0fddb5e3b9
backend returns if user is already subscribed
2019-11-28 17:43:03 +11:00
Rimian Perkins
ca00b530aa
show the product name in subscription lists
2019-11-27 10:48:30 +11:00
Rimian Perkins
3e4fd76891
show product and plan nickname in admin
2019-11-26 12:55:49 +11:00
Rimian Perkins
7340bf5bc5
fix customer id not found
2019-11-26 11:09:54 +11:00
Rimian Perkins
e4093e5a69
fix null delete subscription error
2019-11-14 12:07:24 +11:00
Rimian Perkins
6590d8051c
delete subscriptions in admin
2019-11-14 10:51:04 +11:00
Rimian Perkins
8aed6b8d30
add link to user
2019-11-13 14:21:21 +11:00
Rimian Perkins
75e077399b
Merge branch 'feature/logged-in-subscribe-page' of github.com:rimian/discourse-patrons into feature/logged-in-subscribe-page
2019-11-13 10:20:00 +11:00
Rimian Perkins
84fd12a9a3
add user data to subscription metadata
2019-11-13 10:19:49 +11:00
Rimian Perkins
e654e13ff9
rubocop fix
2019-11-13 08:14:53 +11:00
Rimian Perkins
5153a9a634
fix rubocop
2019-11-12 12:56:35 +11:00
Rimian Perkins
b2c5842aa6
only delete the right subscription
2019-11-12 12:43:23 +11:00
Rimian Perkins
098b58c60c
remove payments
2019-11-07 15:19:48 +11:00
Rimian Perkins
dafa08f43e
disable dashboard
2019-11-07 12:09:40 +11:00
Rimian Perkins
e14b4dcd96
the subscribe product page
2019-11-04 16:37:21 +11:00
Rimian Perkins
2b3c52bdd4
name space user subscription request
2019-11-01 13:43:09 +11:00
Rimian Perkins
e3ac6f7dac
date format and product description
2019-11-01 12:30:19 +11:00
Rimian Perkins
86c77a7395
rubocop && fix i18n
2019-11-01 10:50:34 +11:00
Rimian Perkins
3dfa261c19
serialize and order the plans
2019-11-01 10:18:57 +11:00
Rimian Perkins
dbaa30ba18
user cancels subscription
2019-10-31 10:01:41 +11:00
Rimian Perkins
03cbc235b1
list customer subscriptions
2019-10-30 14:19:43 +11:00
Rimian Perkins
ee0901aeca
delete subscription
2019-10-29 14:35:07 +11:00
Rimian Perkins
2a985ae554
fix subscribe request
2019-10-29 14:15:13 +11:00
Rimian Perkins
7edb0fe39b
list subscriptions
2019-10-29 11:43:32 +11:00
Rimian Perkins
5a7097b774
billing/subscriptions
2019-10-28 14:48:59 +11:00
Rimian Perkins
87c83abcd3
add basic invoices page
2019-10-28 14:05:58 +11:00
Rimian Perkins
b7a3be9344
add customer model spec and scope
2019-10-26 13:01:49 +11:00
Rimian Perkins
dcb4b82dec
customer model
2019-10-26 11:31:19 +11:00
Rimian Perkins
1f7549060d
fix eslint and rubocop
2019-10-25 14:00:59 +11:00
Rimian Perkins
6fbcea2cf3
product controller
2019-10-25 08:18:16 +11:00
Rimian Perkins
eead6fd345
user group specs. help page
2019-10-24 15:48:03 +11:00
Rimian Perkins
8650e6c236
user cannot be added to admins
2019-10-24 11:52:31 +11:00
Rimian Perkins
a80e9d9bc2
add subscription to group
2019-10-24 11:37:20 +11:00
Rimian Perkins
490c424bc0
only list active plans on the front end
2019-10-24 10:39:10 +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
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
4e615908f4
create the subscription
2019-10-14 11:47:49 +11:00
Rimian Perkins
bab76db863
subscriptions controller
2019-10-14 09:52:43 +11:00
Rimian Perkins
fcfb826929
create the token and make the customer request
2019-10-11 12:26:01 +11:00
Rimian Perkins
bb31deae89
basic subscribe page
2019-10-10 13:52:55 +11:00
Rimian Perkins
91045583ad
namespace subscriptions controller
2019-10-10 13:09:24 +11:00
Rimian Perkins
321f6b8a71
spec unauthenticated plans request
2019-10-10 12:31:32 +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
Rimian Perkins
9e2d3551e0
rubocop --fix does not pick this up
2019-09-15 22:11:39 +10:00
Rimian Perkins
18cf0e7f26
FIX: ordering
...
* Fix broken user id
* ascending/descending
2019-09-15 21:44:10 +10:00
Rimian Perkins
ca62cad04e
order the payments in admin
2019-09-15 21:00:39 +10:00
Rimian Perkins
85a90b091c
rm redundant brackets
2019-09-15 12:34:36 +10:00
Rimian Perkins
a42e98ee5b
error for user not permitted
2019-09-15 08:40:52 +10:00
Rimian Perkins
bc8ae3449d
send the customer to the payment api
2019-09-14 21:00:56 +10:00
Rimian Perkins
ad5961a4c5
show the payment on the thankyou page
2019-09-14 20:54:13 +10:00
Rimian Perkins
871cec9ec3
pretty js
2019-09-14 17:28:58 +10:00
Rimian Perkins
9631ddc7e5
format currency and user
2019-09-14 15:55:25 +10:00
Rimian Perkins
6fe149c4a5
basic admin interface
2019-09-14 12:56:28 +10:00
Rimian Perkins
b34e7ade8c
a payment model is created
2019-09-13 22:03:29 +10:00