Changeset 994076
- Timestamp:
- 09/21/2014 01:54:25 AM (12 years ago)
- File:
-
- 1 edited
-
stripe-political-donations/trunk/ajax-payment.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
stripe-political-donations/trunk/ajax-payment.php
r946416 r994076 75 75 // FUTURE FEATURE 76 76 // Run check for total here ($2500/election) 77 if($isPolitical=='true' && 2500 <= $potential_total+($_POST['amount']/100) && $meta['eligible']=='agreed') { 77 if($isPolitical=='true' && (!isset($meta['name']) || empty($meta['name']) || !isset($meta['address1']) || empty($meta['address1']) || !isset($meta['zip']) || empty($meta['zip']))) { 78 $response['error'] = 'Sorry, but you must provide your name and address.'; 79 } else if($isPolitical=='true' && ((!isset($meta['employer']) || empty($meta['employer'])) || (!isset($meta['occupation']) || empty($meta['occupation'])))) { 80 $response['error'] = 'Sorry, but you must provide your employer and occupation.'; 81 } else if($isPolitical=='true' && 2500 <= $potential_total+($_POST['amount']/100) && $meta['eligible']=='agreed') { 78 82 // They've already given too much! 79 83 $response['error'] = 'We believe you\'ve already reached your personal donation limit of $2500 for this election. Call '.PHONE_NUMBER.' if you feel this is incorrect, or if you\'d like to discuss other ways to help out our campaign!';
Note: See TracChangeset
for help on using the changeset viewer.