126 Commits

Author SHA1 Message Date
Rimian Perkins
abaf101173 initial spec for donation-row component 2019-08-26 17:34:40 +10:00
Rimian Perkins
d0bdfab44b fix the test runner 2019-08-26 16:01:57 +10:00
Angus McLeod
06b775c8c1 add equal to 2019-04-09 09:04:24 +10:00
Angus McLeod
44410fa375 add cause release fields 2019-04-03 12:32:24 +11:00
Angus McLeod
b98e603e59 Add proper user path 2018-09-30 11:51:20 +10:00
Angus McLeod
a353eed1c3 small fixes 2018-09-30 11:23:05 +10:00
Angus McLeod
02e3438a9c only add metadata element if there is metadata 2018-09-29 10:12:48 +10:00
Angus McLeod
e1eb585974 Add additional settings and customizations 2018-09-28 17:33:27 +10:00
Angus McLeod
ae793ad247 Add setting for monthly total and other minor improvements 2018-09-24 10:17:53 +10:00
Angus McLeod
a3636a5038 if not a category route remove body class 2018-09-23 09:08:39 +10:00
Angus McLeod
c4c96046cd only show github and meta links if they exist 2018-09-23 08:44:50 +10:00
Angus McLeod
b8cf45aa7f ensure widget is hidden on non-category paths 2018-09-23 08:36:28 +10:00
Angus McLeod
b4fd0287ed Add meta link 2018-09-22 17:48:38 +10:00
Angus McLeod
d58c04a592 only show cause UI in cause categories 2018-09-22 17:09:06 +10:00
Angus McLeod
45ece34200 Add donations causes 2018-09-22 14:03:30 +10:00
Angus McLeod
d686ece85b Redirect to root from '/donate' if the plugin is disabled 2018-07-02 10:30:38 +10:00
Angus McLeod
0260197e9e various 2018-06-28 13:46:02 +10:00
Angus McLeod
1b1eb215e4 various 2018-06-28 09:32:58 +10:00
Angus McLeod
fd0b53c67c Properly validate email 2018-06-25 18:37:55 +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
446cc75cbc Make donation amounts a customisable setting 2018-02-02 19:49:58 +08:00
Angus McLeod
e307a75a3b
Merge branch 'master' into transaction_fee 2018-02-02 17:47:53 +08:00
Angus McLeod
e8e558c3e2 Add ability to allow donor to include stripe transaction fee in their donation 2018-02-02 17:43:54 +08:00
Chris Beach
9ec48bc6b1
Merge pull request #8 from chrisbeach/associate_stripe_customer_id_with_users
Save and reuse stripe customer id when user is present
2018-02-02 08:27:56 +00:00
Angus McLeod
f46d3394cb BUGFIX: default amount should be 1
This seems to have been broken for a little while.

The bug was that if you just left the donation combo-box as is (i.e. at
‘1.00’), entered your card details and clicked ‘donate’ you would get
an error, because the default ``amount`` property was null rather than
0.
2018-02-02 16:19:21 +08:00
Angus McLeod
ccf7f1b73b Save and reuse stripe customer id when user is present 2018-02-02 16:06:43 +08:00
Angus McLeod
19f197e780 Add page description setting 2018-02-02 13:43:20 +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
c6f416788c Hide nav link if plugin disabled 2018-01-17 23:10:15 +00:00
Angus McLeod
23bc79513a Rm test element 2017-11-27 10:39:32 +08:00
Angus McLeod
bcebbd583b Move script to jquery insertion on render 2017-11-27 10:28:21 +08: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
c22ef46224 rm stripe.js from build
It needs to be loaded directly.

https://stripe.com/docs/stripe-js/reference#including-stripejs
2017-11-12 11:01:08 +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
20a38095dd Enable checkout route 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
943343ffa4 Use siteSettings properly 2017-10-12 02:13:20 +01:00
Chris Beach
92639a483f Fix discourse-markdown 2017-10-12 00:37:29 +01:00
Chris Beach
8fdd5dad27 Revert removal of donate menu item 2017-10-11 23:58:22 +01:00
Chris Beach
6814c80540 Stripe Checkout can be created via BBCode markup 2017-10-09 08:39:21 +01:00
Rimian Perkins
70b928707f disable the button as soon as it is clicked 2017-05-29 10:48:32 +10:00
Rimian Perkins
8b21d44bc9 Change the route to something meaningful 2017-05-18 14:57:27 +10:00
Rimian Perkins
df205eb584 send create accounts param 2017-05-18 12:09:37 +10:00
Rimian Perkins
c091676cb5 permit stripe token and amount 2017-05-18 10:46:11 +10:00
Rimian Perkins
13fe7ab7d5 remove second request to create user 2017-05-10 14:17:28 +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