Commit Graph

229 Commits

Author SHA1 Message Date
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 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 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 e004a18071 templates and routes for subscriptions 2019-09-23 15:01:03 +10:00
Rimian Perkins 910e08e4c9 flip ordering 2019-09-15 22:03:42 +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 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 1c89252918 render some json 2019-09-14 18:17:45 +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 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 2e3cdb0dcf fix routes. get specs passing 2019-09-11 19:11:02 +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 ae793ad247 Add setting for monthly total and other minor improvements 2018-09-24 10:17:53 +10:00
Angus McLeod 45ece34200 Add donations causes 2018-09-22 14:03:30 +10:00
Angus McLeod 1b1eb215e4 various 2018-06-28 09:32:58 +10:00
Angus McLeod 8453d5cc03 various 2018-06-25 18:14:50 +10:00
Angus McLeod 90f5083fb6 Small fixes 2018-06-22 11:55:16 +10:00
Angus McLeod d55d149d7d Add recurring donations 2018-06-21 19:00:43 +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 df91a44277 fix client/server messages and locales
zip code should be a positive boolean not negative
remove dollar signs
fix stripe.rb method signature and charging logic
2017-11-26 12:24:27 +00:00
Angus McLeod fc8f7560cf fix build by skipping check_xhr 2017-11-12 11:37:21 +08:00
Angus McLeod 38689a59d5 Inherit from the application controller 2017-11-08 08:58:38 +08:00
Angus McLeod c2fa248b79 Include stripe js && inherit from the application controller 2017-11-08 08:45:18 +08:00
Chris Beach d563cd1ddd Working checkout_controller.rb that charges Stripe
* Add billing address setting
2017-10-19 23:51:05 +01:00
Chris Beach 05a2629f8c Add checkout method 2017-10-19 23:51:05 +01:00
Chris Beach 238f4c4eb4 Include amount on form and increase logging 2017-10-19 23:51:05 +01:00
Chris Beach 18196c0a0a Revert "Debugging"
This reverts commit 991631c
2017-10-19 23:51:05 +01:00
Chris Beach e556e75253 Revert "Debugging"
This reverts commit f6d862f
2017-10-19 23:51:05 +01:00
Chris Beach d73e6b5004 Debugging 2017-10-19 23:51:05 +01:00
Chris Beach 37436d1adc Debugging 2017-10-19 23:51:05 +01:00
Chris Beach 340959c73b Fix failing tests (likely due to Discourse Rails upgrade) 2017-10-11 23:48:41 +01:00
Rimian Perkins dfd9e451c3 handle fails from stripe 2017-05-24 12:22:00 +10:00
Rimian Perkins 17a43740d6 fix missing strong param 2017-05-23 14:32:52 +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 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 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 5ba61725c3 server message 2017-05-06 16:31:06 +10:00
Rimian Perkins 3792073e7d output success status on failure like discourse does 2017-05-05 10:24:22 +10:00
Rimian Perkins 223e6bc179 check password length and tidy up 2017-05-05 09:57:26 +10:00
Rimian Perkins cc46445b24 use translations for missing params 2017-05-04 20:11:26 +10:00
Rimian Perkins 4fe5a0462a disallows reserved usernames 2017-05-04 19:49:30 +10:00
Rimian Perkins 1b3a104445 output multiple messages 2017-05-04 12:43:33 +10:00
Rimian Perkins 690ee1d25b fix up name space collisions 2017-05-04 12:39:45 +10:00
Rimian Perkins 256b44ad60 messages are an array 2017-05-03 15:13:41 +10:00
Rimian Perkins 53ebcf4625 pluralize messages name space 2017-05-03 09:59:10 +10:00
Rimian Perkins e2a12a1b11 handle the response in the controller 2017-05-02 10:02:07 +10:00
Rimian Perkins 9e082b7dcc merge in create account 2017-05-01 10:42:34 +10:00
Rimian Perkins 2aa663d922 merge in master 2017-04-27 20:35:33 +10:00
Rimian Perkins 1549a47088 grant the users badges 2017-04-27 19:31:11 +10:00
Rimian Perkins 0a20a10237 add the users from the queue into the group 2017-04-27 18:28:38 +10:00
Rimian Perkins 898d1a32d5 try scheduling 2017-04-27 16:50:05 +10:00
Rimian Perkins 1feb997122 enqueue directly 2017-04-27 15:08:10 +10:00
Rimian Perkins 999b106b65 the award job adds the user to a group 2017-04-27 14:51:47 +10:00
Rimian Perkins 45501a0ca3 initial empty job 2017-04-27 13:34:48 +10:00
Rimian Perkins cfe04fd4e3 initial tests for new user account 2017-04-27 11:58:52 +10:00
Rimian Perkins 061ea69434 add the user to a group 2017-04-24 11:44:55 +10:00
Rimian Perkins 1c87a87bd6 refactor the rewards interface for extensibility 2017-04-24 10:06:47 +10:00
Rimian Perkins 9acaf51307 explicitly specify group name 2017-04-24 06:05:51 +10:00
Rimian Perkins f383a0c4f9 add rewards to response 2017-04-21 14:26:53 +10:00
Rimian Perkins c3fe90f4d1 empty rewards 2017-04-21 12:08:52 +10:00
Rimian Perkins b2393cb2aa add the current user to a group when the payment is successful 2017-04-21 10:26:43 +10:00
Rimian Perkins e09b852361 normalize the message from stripe 2017-04-20 11:09:59 +10:00
Rimian Perkins 0d078c6131 the message 2017-04-19 10:43:40 +10:00
Rimian Perkins 392478adf3 implement service 2017-04-06 14:22:22 +10:00
Rimian Perkins 66094fdfdd check for empty email 2017-04-05 09:49:57 +10:00
Rimian Perkins 906952a11a check account create and email is not empty 2017-04-04 15:05:50 +10:00
Rimian Perkins aaff445019 check email is not empty 2017-04-04 14:34:33 +10:00
Rimian Perkins 6717317717 expect a username if an account is being created 2017-04-04 13:44:13 +10:00
Rimian Perkins 3fa6130f23 normalise the message in the response 2017-04-04 13:10:31 +10:00
Rimian Perkins 5d3db5373b respond with empty json if email does not exist 2017-04-04 12:00:23 +10:00
Rimian Perkins 391171d560 respond with empty json if email does not exist 2017-04-04 11:18:35 +10:00
Rimian Perkins 3896866d5b send another ajax request to create account 2017-03-22 13:56:45 +11:00
Rimian Perkins 61361bb69d approve user 2017-03-21 14:28:26 +11:00
Rimian Perkins e26b73a57d fix tests, active user 2017-03-21 12:49:31 +11:00
Rimian Perkins f77ddeba31 create a user account 2017-03-21 11:52:48 +11:00
Rimian Perkins 92e5bf76d7 add anon payments 2017-03-20 12:24:39 +11:00
Rimian Perkins 261c0dfbcc donation description 2017-03-14 13:31:20 +11:00
Rimian Perkins 5468cac161 add settings for currency and hide post code 2017-03-07 15:21:51 +11:00
Rimian Perkins c0ddd25198 remove settings yaml config 2017-02-28 13:23:23 +11:00
Rimian Perkins 3a428d17f0 name space the rails things 2017-02-24 13:23:11 +11:00
Rimian Perkins 72a35cd738 upgrade strip gem ~> 2.0 2017-02-23 10:31:30 +11:00
Rimian Perkins 9ed1af4538 catch the error and render charge json 2017-02-22 11:12:19 +11:00
Rimian Perkins d6a00ae888 post data from stripe form 2017-02-22 10:21:42 +11:00
Rimian Perkins de9a5cb6f9 stripe elements form submits a payment to stripe api 2017-02-16 16:29:42 +11:00
Rimian Perkins e1778d6bd8 sample ajax request 2017-02-15 14:10:52 +11:00
Rimian Perkins 4d2c52e3f2 refactor controller name 2017-02-15 13:30:28 +11:00
Rimian Perkins 0c6b77b93a refactor module name space 2017-02-15 13:03:58 +11:00
Rimian Perkins 938983341a enable the transcation 2017-02-15 11:44:34 +11:00
Rimian Perkins 46a13af63a controller tests create response 2017-02-15 11:40:00 +11:00
Rimian Perkins c0529c5bdb a child page at user/:username/choice 2017-02-10 15:10:47 +11:00
Rimian Perkins 8d7b50a7ae inital empty page 2017-02-07 13:56:22 +11:00
Rimian Perkins fd52e67026 return json 2017-02-02 13:11:10 +11:00
Rimian Perkins 35ac1bc3c3 Transaction works. Still need to tidy up response 2017-02-02 11:49:22 +11:00
Rimian Perkins 39a53c8cd3 whoops! 2017-02-01 16:30:26 +11:00
Rimian Perkins 504bfbd677 get the badge 2017-02-01 16:16:42 +11:00
Rimian Perkins 853c94a72e set some env vars and create some stripe account stuff 2017-02-01 13:35:18 +11:00
Rimian Perkins df7607043a stripe button requests mounted engine 2017-01-31 14:21:27 +11:00
Rimian Perkins 823d07a247 change controller method yo 2017-01-31 13:59:42 +11:00
Rimian Perkins df810c3613 controller, helper and routes 2017-01-31 13:28:41 +11:00