Commit Graph

204 Commits

Author SHA1 Message Date
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
Rimian Perkins c90d4b2f8e fix params 2019-09-13 14:34:06 +10:00
Rimian Perkins 404bede398 fix snake case 2019-09-13 13:46:32 +10:00
Rimian Perkins 7f7bd52552 return empty email if not current user 2019-09-13 12:58:17 +10:00
Rimian Perkins cb9af7c258 send the current user 2019-09-13 12:35:38 +10:00
Rimian Perkins 32bf78fa9a send a description to the payment intent 2019-09-12 19:17:08 +10:00
Rimian Perkins 8785e98464 readme some 2019-09-12 13:13:06 +10:00
Rimian Perkins ce258d3d08 convert amount in param 2019-09-12 11:49:52 +10:00
Rimian Perkins af97581911 stub stripe payment create 2019-09-11 19:55:35 +10:00
Rimian Perkins c70f570479 Rubocop 2019-09-11 19:27:24 +10:00
Rimian Perkins 2e3cdb0dcf fix routes. get specs passing 2019-09-11 19:11:02 +10:00
Rimian Perkins 3f90518e18 controller spec runs 2019-09-11 18:32:09 +10:00
Rimian Perkins 109d6fc137 empty specs 2019-09-11 17:57:29 +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
Rimian Perkins a654f7410d rm fails 2019-08-27 18:48:54 +10:00
Rimian Perkins 4c25aa0ad1 add the current user to specs 2019-08-27 18:37:14 +10:00
Rimian Perkins 5724e6d2ed add the json format 2019-08-27 17:29:19 +10:00
Rimian Perkins 4dad8547ca disable shoulda permit 2019-08-27 17:23:22 +10:00
Rimian Perkins 3bde870998 test no account create 2019-08-27 17:10:49 +10:00
Rimian Perkins 9fbf83f19f oops wrong path 2019-08-27 16:45:39 +10:00
Rimian Perkins ae3e67d385 add more stripe factories 2019-08-27 16:43:55 +10:00
Rimian Perkins 53b1e47216 name space fabricators. add plans 2019-08-27 16:28:35 +10:00
Rimian Perkins c8bcc1eb28 factory for stripe responses 2019-08-27 16:06:37 +10:00
Rimian Perkins 1315d240e6 simplify the http stubs 2019-08-27 12:53:20 +10:00
Rimian Perkins 4b41756cfa a zillion http stubs to get this spec to pass! 2019-08-27 11:57:51 +10:00
Rimian Perkins d4d62c5458 Stripe controller specs
* Get some of these to pass.
* skip some

I am going to refactor this anyway
2019-08-26 20:34:13 +10:00
Rimian Perkins 0fb2026123 remove redundant spec 2019-08-26 18:42:06 +10:00
Angus McLeod ccf7f1b73b Save and reuse stripe customer id when user is present 2018-02-02 16:06:43 +08:00
Chris Beach dd7e86930f Include timestamp in messages to user.
Permit email param in checkout_controller
Fix failing tests
2018-01-18 00:21:41 +00:00
Chris Beach 35dd123264 fix tests 2017-11-26 12:41:39 +00:00
Chris Beach 173f090c4f Disable that darned discobot 2017-10-16 12:48:26 +01:00
Chris Beach 340959c73b Fix failing tests (likely due to Discourse Rails upgrade) 2017-10-11 23:48:41 +01:00
Rimian Perkins 17a43740d6 fix missing strong param 2017-05-23 14:32:52 +10:00
Rimian Perkins 9d2cd86f54 stripe service can create subscriptions 2017-05-23 12:28:07 +10:00
Rimian Perkins f99aed364b new plugin helper 2017-05-23 10:30:54 +10:00
Rimian Perkins b8130f9969 Revert "use site setting instead of params for create account"
This reverts commit 05c31f1909.

* also test the create account setting cannot be overwritten
2017-05-18 12:02:26 +10:00
Rimian Perkins 1def5daccb add the right params for controller specs 2017-05-18 11:48:54 +10:00
Rimian Perkins c091676cb5 permit stripe token and amount 2017-05-18 10:46:11 +10:00
Rimian Perkins cb03671c19 permit params 2017-05-17 14:17:37 +10:00
Rimian Perkins 05c31f1909 use site setting instead of params for create account 2017-05-17 10:30:28 +10:00
Rimian Perkins b663bf5447 remove old jobs for awards 2017-05-12 10:46:48 +10:00
Rimian Perkins c12cc3246a enqueue the mail job 2017-05-12 10:28:39 +10:00
Rimian Perkins 183d15e539 remove extra key/values from user create job 2017-05-11 12:01:57 +10:00
Rimian Perkins 344abb6418 specify first argument as per this: http://stackoverflow.com/questions/43881911/ruby-mocha-expect-the-first-argument-to-be-a-symbol 2017-05-11 10:12:49 +10:00
Rimian Perkins c90245dce6 expect the job to be queued 2017-05-10 11:17:39 +10:00
Rimian Perkins f008f91a79 no accounts created 2017-05-10 10:05:53 +10:00
Rimian Perkins e875b17be2 no name collisions 2017-05-08 14:37:19 +10:00
Rimian Perkins 9ca0f09916 job grants badge 2017-05-08 13:38:14 +10:00
Rimian Perkins 0da6dd5610 fix success specs 2017-05-08 11:40:15 +10:00
Rimian Perkins a32473ef10 check payment and rewards do not happen on failure 2017-05-05 10:27:34 +10:00
Rimian Perkins 3792073e7d output success status on failure like discourse does 2017-05-05 10:24:22 +10:00