Changeset - 7538e2881ec2
[Not reviewed]
0 1 0
Bradley Kuhn (bkuhn) - 7 years ago 2014-07-30 17:08:03
bkuhn@ebb.org
Update Monthly Donation form to fix PayPal problem

On a monthly subscription box, PayPal silently fails to allow the user
to select any option but the first one (despite selecting another value
from the form) if you name the values the same.

It's somewhat obvious when you review the form code that PayPal gives
you that all the value="" fields were the same, and thus the incorrect
behavior is somewhat unsurprising.

I fixed this by modifying the buttons to include the amount in words.
1 file changed with 7 insertions and 7 deletions:
0 comments (0 inline, 0 general)
www/conservancy/static/donate/index.html
Show inline comments
...
 
@@ -31,13 +31,13 @@ USA
 
<input type="hidden" name="cmd" value="_s-xclick">
 
<input type="hidden" name="hosted_button_id" value="XCZS3F7V957LS">
 
<table>
 
<tr><td><input type="hidden" name="on0" value=""></td></tr><tr><td><select name="os0">
 
	<option value="Monthly Donation">Monthly Donation : $50.00 USD - monthly</option>
 
	<option value="Monthly Donation">Monthly Donation : $40.00 USD - monthly</option>
 
	<option value="Monthly Donation">Monthly Donation : $30.00 USD - monthly</option>
 
	<option value="Monthly Donation">Monthly Donation : $25.00 USD - monthly</option>
 
	<option value="Monthly Donation">Monthly Donation : $20.00 USD - monthly</option>
 
	<option value="Monthly Donation">Monthly Donation : $10.00 USD - monthly</option>
 
<tr><td><input type="hidden" name="on0" value="Monthly Donation Amount">Monthly Donation Amount</td></tr><tr><td><select name="os0">
 
	<option value="Fifty Dollar Monthly Donation">Fifty Dollar Monthly Donation : $50.00 USD - monthly</option>
 
	<option value="Forty Dollar Monthly Donation">Forty Dollar Monthly Donation : $40.00 USD - monthly</option>
 
	<option value="Thirty Dollar Monthly Donation">Thirty Dollar Monthly Donation : $30.00 USD - monthly</option>
 
	<option value="Twenty-Five Dollar Monthly Donation">Twenty-Five Dollar Monthly Donation : $25.00 USD - monthly</option>
 
	<option value="Twenty Dollar Monthly Donation">Twenty Dollar Monthly Donation : $20.00 USD - monthly</option>
 
	<option value="Ten Dollar Monthly Donation">Ten Dollar Monthly Donation : $10.00 USD - monthly</option>
 
</select> </td></tr>
 
</table>
 
<input type="hidden" name="currency_code" value="USD">
0 comments (0 inline, 0 general)