MediaWiki:DonationForm.js: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
update LatAm feeMinimums |
allow recurring in most Latam countries, but still exclude Paypal |
||
Line 17: | Line 17: | ||
// Don't offer recurring at all in these countries |
// Don't offer recurring at all in these countries |
||
donationForm.noRecurringCountries = [ 'AR' |
donationForm.noRecurringCountries = [ 'AR' ]; // is this still needed? |
||
donationForm.noRecurringPaypalCountries = [ 'CL', 'CO', 'MX', 'PE', 'UY', 'BR' ]; |
|||
donationForm.maxUSD = 25000; |
donationForm.maxUSD = 25000; |
||
Line 1,367: | Line 1,369: | ||
$('#frequency_onetime').prop('checked', true); |
$('#frequency_onetime').prop('checked', true); |
||
$('.frequency-options, #cancel-monthly, #donate-recurring-smallprint').hide(); |
$('.frequency-options, #cancel-monthly, #donate-recurring-smallprint').hide(); |
||
} |
|||
if ( donationForm.noRecurringPaypalCountries.indexOf( donationForm.country ) !== -1 ) { |
|||
$( '.paymentmethod-pp, .paymentmethod-pp-usd' ).addClass( 'not-monthly-capable' ); |
|||
} |
} |
||