add google checkout option. Maybe it's time to break these into individual pages via a menu up top.
Andrew Lewman

Andrew Lewman commited on 2010-12-09 19:07:40
Zeige 1 geänderte Dateien mit 48 Einfügungen und 0 Löschungen.

... ...
@@ -143,6 +143,54 @@
143 143
     </div>
144 144
     </div>
145 145
     <!-- END AMAZON -->
146
+    <!-- BEGIN GOOGLE -->
147
+    <div class="title topforty">Single Donation via Google Checkout</div>
148
+    <div class="hundred left">
149
+      <div class="paypal focus">
150
+      	<h4>Make a single donation.</h4>
151
+
152
+<script type="text/javascript"> 
153
+function validateAmount(amount){
154
+  if(amount.value.match( /^[0-9]+(\.([0-9]+))?$/)){
155
+    return true;
156
+  }else{
157
+    alert('You must enter a valid donation.');
158
+    amount.focus();
159
+    return false;
160
+  }
161
+}
162
+</script>
163
+<form
164
+action="https://checkout.google.com/cws/v2/Donations/250937139555708/checkoutForm"
165
+id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm"
166
+onSubmit="return validateAmount(this.item_price_1)" target="_top">
167
+    <input name="item_name_1" type="hidden" value="Donate to the Tor
168
+Project"/>
169
+    <input name="item_description_1" type="hidden" value="Tor is written
170
+for and supported by people like you"/>
171
+    <input name="item_quantity_1" type="hidden" value="1"/>
172
+    <input name="item_currency_1" type="hidden" value="USD"/>
173
+    <input name="item_is_modifiable_1" type="hidden" value="true"/>
174
+    <input name="item_min_price_1" type="hidden" value="0.01"/>
175
+    <input name="item_max_price_1" type="hidden" value="25000.0"/>
176
+    <input name="_charset_" type="hidden" value="utf-8"/>
177
+    <table cellpadding="5" cellspacing="0" width="1%">
178
+        <tr>
179
+            <td align="right" nowrap="nowrap" width="1%">&#x24; <input
180
+id="item_price_1" name="item_price_1" onfocus="this.style.color='black';
181
+this.value='';" size="6" type="text" value="25.00"/>
182
+            </td>
183
+            <td align="left" width="1%">
184
+                <input alt="Donate"
185
+src="https://checkout.google.com/buttons/donateNow.gif?merchant_id=250937139555708&amp;w=115&amp;h=50&amp;style=white&amp;variant=text&amp;loc=en_US"
186
+type="image"/>
187
+            </td>
188
+        </tr>
189
+    </table>
190
+</form>
191
+</div>
192
+</div>
193
+    <!-- END GOOGLE -->
146 194
     <!-- BEGIN GIVV -->
147 195
     <div class="title topforty">Donate via Givv.org
148 196
     </div>
149 197