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 ) {
// Minimum fee/PTF amounts. Default
// Updated 2019-05-21 to approx 0.35 USD equivalent
var feeMinimums = {
'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;
|