Template:2012FR/Form-section/Processing/Default: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
Created page with "<html> <script> function redirectPayment (legacyPaymentMethod) { // wrapper for redirectPayment2() // using old method parameters // until buttons can be updated ..." |
No edit summary |
||
Line 68:
}
var form = document.paypalcontribution; // we should really change this some day
var paymentsURL = 'https://payments.wikimedia.org/index.php/Special:GatewayFormChooser';
var params = {
'uselang' : $("input[name='language']").val(),
'language' : $("input[name='language']").val(),
'currency' : $("input[name='currency_code']").val(),
'country' : $("input[name='country']").val(),
'paymentmethod' : paymentMethod
};
Line 100 ⟶ 99:
form.action = paymentsURL + '?' + $.param(params);
form.utm_source.value = '{{{banner}}}.no-LP' + '.' + paymentMethod;▼
form.payment_method.value = paymentMethod;
if( paymentSubMethod != '' ){
Line 114 ⟶ 112:
function addAnalytics () {
//
var form = document.paypalcontribution;
if(getQuerystring( 'template' ) == '') {
} else {
}
if(getQuerystring( 'appeal-template' ) == '') {
} else {
}
if(getQuerystring( 'appeal' ) == '') {
} else {
}
if(getQuerystring( 'form-template' ) == '') {
} else {
}
if(getQuerystring( 'form-countryspecific' ) == '') {
} else {
}
}
</script>
|
Revision as of 13:01, 16 October 2013