[or-cvs] r23914: {website} add google checkout option. Maybe it's time to break these i (website/trunk/donate/en)
Andrew Lewman
andrew at torproject.org
Thu Dec 9 18:07:40 UTC 2010
Author: phobos
Date: 2010-12-09 18:07:40 +0000 (Thu, 09 Dec 2010)
New Revision: 23914
Modified:
website/trunk/donate/en/donate.wml
Log:
add google checkout option. Maybe it's time to break these into
individual pages via a menu up top.
Modified: website/trunk/donate/en/donate.wml
===================================================================
--- website/trunk/donate/en/donate.wml 2010-12-09 17:49:12 UTC (rev 23913)
+++ website/trunk/donate/en/donate.wml 2010-12-09 18:07:40 UTC (rev 23914)
@@ -143,6 +143,54 @@
</div>
</div>
<!-- END AMAZON -->
+ <!-- BEGIN GOOGLE -->
+ <div class="title topforty">Single Donation via Google Checkout</div>
+ <div class="hundred left">
+ <div class="paypal focus">
+ <h4>Make a single donation.</h4>
+
+<script type="text/javascript">
+function validateAmount(amount){
+ if(amount.value.match( /^[0-9]+(\.([0-9]+))?$/)){
+ return true;
+ }else{
+ alert('You must enter a valid donation.');
+ amount.focus();
+ return false;
+ }
+}
+</script>
+<form
+action="https://checkout.google.com/cws/v2/Donations/250937139555708/checkoutForm"
+id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm"
+onSubmit="return validateAmount(this.item_price_1)" target="_top">
+ <input name="item_name_1" type="hidden" value="Donate to the Tor
+Project"/>
+ <input name="item_description_1" type="hidden" value="Tor is written
+for and supported by people like you"/>
+ <input name="item_quantity_1" type="hidden" value="1"/>
+ <input name="item_currency_1" type="hidden" value="USD"/>
+ <input name="item_is_modifiable_1" type="hidden" value="true"/>
+ <input name="item_min_price_1" type="hidden" value="0.01"/>
+ <input name="item_max_price_1" type="hidden" value="25000.0"/>
+ <input name="_charset_" type="hidden" value="utf-8"/>
+ <table cellpadding="5" cellspacing="0" width="1%">
+ <tr>
+ <td align="right" nowrap="nowrap" width="1%">$ <input
+id="item_price_1" name="item_price_1" onfocus="this.style.color='black';
+this.value='';" size="6" type="text" value="25.00"/>
+ </td>
+ <td align="left" width="1%">
+ <input alt="Donate"
+src="https://checkout.google.com/buttons/donateNow.gif?merchant_id=250937139555708&w=115&h=50&style=white&variant=text&loc=en_US"
+type="image"/>
+ </td>
+ </tr>
+ </table>
+</form>
+</div>
+</div>
+ <!-- END GOOGLE -->
<!-- BEGIN GIVV -->
<div class="title topforty">Donate via Givv.org
</div>
More information about the tor-commits
mailing list