1 |
commit: 0d3af7ac18335c4ca74f9350e586313b94ea98f1 |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 24 00:26:46 2016 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 24 00:30:48 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/sites/www.git/commit/?id=0d3af7ac |
7 |
|
8 |
donate: set $5 min donation. |
9 |
|
10 |
The foundation has recieved a number of small fraudulant donations, |
11 |
possibly made to test stolen credit card numbers. These donations had |
12 |
chargebacks fee levied against us by Paypal. |
13 |
|
14 |
We are striving to verify the donations where possible, but this will |
15 |
help reduce them. |
16 |
|
17 |
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> |
18 |
|
19 |
donate/index.html | 23 +++++++++++++++++++---- |
20 |
1 file changed, 19 insertions(+), 4 deletions(-) |
21 |
|
22 |
diff --git a/donate/index.html b/donate/index.html |
23 |
index 7168a69..8aa2f05 100644 |
24 |
--- a/donate/index.html |
25 |
+++ b/donate/index.html |
26 |
@@ -28,7 +28,20 @@ layout: tyrian |
27 |
<div class="panel-body"> |
28 |
You can easily make a one-time contribution using PayPal: |
29 |
<br><br> |
30 |
- <form action="https://www.paypal.com/cgi-bin/webscr" method="post" class="donate-form"> |
31 |
+ <script type="text/javascript"> |
32 |
+ function validate_donation_form() { |
33 |
+ var amount_str = document.forms["donate-form"]["amount"].value; |
34 |
+ var amount_num = +amount_str; // unary conversion op |
35 |
+ if (isNaN(amount_num)) { |
36 |
+ return false; |
37 |
+ } |
38 |
+ if (amount_num < 5.00) { |
39 |
+ return false; |
40 |
+ } |
41 |
+ return true; |
42 |
+ } |
43 |
+ </script> |
44 |
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post" class="donate-form" name="donate-form" onsubmit="return validate_donation_form()"> |
45 |
<input type="hidden" name="cmd" value="_xclick"> |
46 |
<input type="hidden" name="business" value="paypal@g.o"> |
47 |
<input type="hidden" name="item_name" value="Gentoo Linux Support"> |
48 |
@@ -41,7 +54,7 @@ layout: tyrian |
49 |
<input type="hidden" name="cancel_return" value="https://www.gentoo.org/donate/cancel.html"> |
50 |
<div class="input-group input-group-lg"> |
51 |
<span class="input-group-addon">US $</span> |
52 |
- <input type="text" class="form-control" placeholder="Enter Amount" name="amount"> |
53 |
+ <input type="text" class="form-control" placeholder="Enter Amount" name="amount" min="5.00" step="0.01"> |
54 |
<span class="input-group-btn"> |
55 |
<button class="btn btn-danger" type="submit"><span class="fa fa-fw fa-heart"></span> Donate!</button> |
56 |
</span> |
57 |
@@ -50,7 +63,9 @@ layout: tyrian |
58 |
<br> |
59 |
<small> |
60 |
You can use this form even if you don't have or want to create a PayPal account. |
61 |
- On the next screen, you can pay with your credit card instead. |
62 |
+ On the next screen, you can pay with your credit card instead. Please note that |
63 |
+ there is a US$ 5 minimum, and you may be contacted to confirm your donation is |
64 |
+ not fraudulent. |
65 |
</small> |
66 |
</div> |
67 |
</div> |
68 |
@@ -113,4 +128,4 @@ layout: tyrian |
69 |
Our presence there was only possible thanks to your support<br> |
70 |
Picture by Hanno Böck/CC-0 |
71 |
</small> |
72 |
-</p> |
73 |
\ No newline at end of file |
74 |
+</p> |