MediaWiki:DonationForm.js: Difference between revisions

Content deleted Content added
don't need variant=emailExplain any more
add PTF minimums for other countries
Line 792:
*/
donationForm.calculateFee = function( amount ) {
 
// var currency = frb.getCurrency(mw.centralNotice.data.country),
// Minimum fee/PTF amounts. Default feeMultiplier =is 0.04,35.
// Updated 2019-05-21 to approx 0.35 USD equivalent
// feeMinimum = frb.amounts.feeMinimums[currency] || 1,
var feeMinimums = {
// feeAmount = amount * feeMultiplier;
'DKK' : 2,
'HUF' : 100,
'ILS' : 1.2,
'MYR' : 1,
'NOK' : 3,
'PLN' : 1.35,
'RON' : 1.5,
'SEK' : 3,
'UAH' : 10,
'ZAR' : 5,
// Latin America
'BRL' : 1.5,
'ARS' : 15,
'CLP' : 250,
'COP' : 1000,
'PEN' : 1.2,
'MXN' : 6,
'UYU' : 12
};
 
var feeMultiplier = 0.04,
feeMinimum = feeMinimums[document.paypalcontribution.country.value] || 0.35,
feeAmount = amount * feeMultiplier;