Commit Graph

348 Commits

Author SHA1 Message Date
Angus McLeod e8e558c3e2 Add ability to allow donor to include stripe transaction fee in their donation 2018-02-02 17:43:54 +08: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
Chris Beach 23e30c7db8
Merge pull request #7 from chrisbeach/donate_page_description
Add page description setting
2018-02-02 07:38:18 +00: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
Chris Beach a16fdf57ef
Merge pull request #6 from chrisbeach/post_donate_button_fix
Move script to jquery insertion on render
2017-11-27 08:15:44 +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 41ffb0c437 update readme 2017-11-26 14:09:06 +00:00
Chris Beach 35dd123264 fix tests 2017-11-26 12:41:39 +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
Chris Beach 876edfc0d7 Improve README 2017-11-14 01:06:18 +00:00
Chris Beach 5c281cf9ef
Merge pull request #4 from chrisbeach/stripe-injection
Add stripe injection to <head> in plugin.rb
2017-11-12 10:02:13 +00:00
Angus McLeod fc8f7560cf fix build by skipping check_xhr 2017-11-12 11:37:21 +08:00
Angus McLeod e4f420a96e add stripe script in plugin.rb 2017-11-12 11:16:47 +08: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
Chris Beach a2fac9a4ff
Merge pull request #2 from angusmcleod/suggested_improvements
Include stripe_js && inherit from the application controller
2017-11-08 08:08:18 +00: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 20a38095dd Enable checkout route 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 173f090c4f Disable that darned discobot 2017-10-16 12:48:26 +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 ea24600f61 Fix README.md 2017-10-12 00:00:02 +01:00
Chris Beach 8fdd5dad27 Revert removal of donate menu item 2017-10-11 23:58:22 +01:00
Chris Beach 340959c73b Fix failing tests (likely due to Discourse Rails upgrade) 2017-10-11 23:48:41 +01:00
Chris Beach 2b17c87333 Tweak readme 2017-10-11 20:40:13 +01:00
Chris Beach 6814c80540 Stripe Checkout can be created via BBCode markup 2017-10-09 08:39:21 +01:00
Chris Beach 0e19102139 update .gitignore 2017-10-08 23:18:22 +01:00
Rimian Perkins 9f51b0ef10 Merge pull request #8 from Dax74/patch-3
Update client.it.yml
2017-09-22 12:40:40 +10:00
Rimian Perkins 62b2449115 Merge pull request #9 from Dax74/patch-4
Update server.it.yml thanks
2017-09-22 12:40:10 +10:00
Dax74 26d6b27003 Update server.it.yml 2017-07-04 15:16:08 +02:00
Dax74 f533a480e6 Update client.it.yml 2017-07-04 15:02:10 +02:00
Rimian Perkins 70b928707f disable the button as soon as it is clicked 2017-05-29 10:48:32 +10:00
Rimian Perkins e8a50b0930 add some test credit card numbers 2017-05-27 16:59:44 +10:00
Rimian Perkins 850ddd1cf7 remove auto create theme 2017-05-25 08:59:11 +10:00
Rimian Perkins aba89d140e Update README.md 2017-05-24 12:48:55 +10: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 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 d164482bda documentation 2017-05-18 15:07:32 +10:00