From 9a4c92352d9ad19ba0709e2f20c5fba7d6e1b485 Mon Sep 17 00:00:00 2001
From: "Bradley M. Kuhn"
Date: Sat, 3 Jan 2015 13:14:17 -0500
Subject: [PATCH] Use only on0/os0/on1/os1 options with PayPal.
According to these URLs:
https://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/options-help-outside
https://developer.paypal.com/webapps/developer/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/
only two Options are supported via PayPal. I was fooled initially
because other fields *did* come through and *did* show up on the web
interface, but they are *not* accessible via the SOAP interface.
Therefore, I've switched to using the hack described here:
https://ppmts.custhelp.com/app/answers/detail/a_id/298/kw/soap%20gettransactiondetails%20option
to get 4 fields of data for Supporter transactions.
---
www/conservancy/static/supporter-page.js | 4 +-
www/conservancy/static/supporter/index.html | 76 +++++++++------------
2 files changed, 36 insertions(+), 44 deletions(-)
diff --git a/www/conservancy/static/supporter-page.js b/www/conservancy/static/supporter-page.js
index d4072562..fa816290 100644
--- a/www/conservancy/static/supporter-page.js
+++ b/www/conservancy/static/supporter-page.js
@@ -40,12 +40,12 @@ $(document).ready(function() {
$control.find('.toggle-content').slideDown("slow");
});
$(".t-shirt-size-selector").hide();
- $('input[name=os1]:radio').change(function() {
+ $('input[name=on0]:radio').change(function() {
var input=$(this);
var tShirtSelector = input.parent().children('.t-shirt-size-selector')
var noShippingSelector = input.parent().children('input#no_shipping');
var value = input.val();
- if (value == "Yes") {
+ if (value == "wantGiftYes") {
tShirtSelector.show();
noShippingSelector.val("2");
} else {
diff --git a/www/conservancy/static/supporter/index.html b/www/conservancy/static/supporter/index.html
index 60608ff4..0a49591c 100644
--- a/www/conservancy/static/supporter/index.html
+++ b/www/conservancy/static/supporter/index.html
@@ -155,35 +155,31 @@ internal policies are published and available for scrutiny.
Supporters. Donate smaller amounts here.
-
- Yes
- No
+ Yes
+ No
-
-
-
-
- Yes
- No
+ Yes
+ No
-
- Yes
- No
+ Yes
+ No
are published and available for scrutiny.
$10/month is a minimum for Conservancy
Supporters. Donate smaller amounts here.
-
- Yes
- No
+ Yes
+ No
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
- Yes
- No
+ Yes
+ No
-
- Yes
- No
+ Yes
+ No