Template:2012FR/Form-section/Processing/Default: Difference between revisions
Content deleted Content added
No edit summary |
changes Matt suggested |
||
Line 8:
<script>
function redirectPayment (legacyPaymentMethod) {
// wrapper for
// using old method parameters
// until buttons can be updated
Line 14:
switch (legacyPaymentMethod) {
case 'cc':
break;
Line 23:
case 'ew-pp-usd':
case 'ew-pp-eur':
break;
case 'dd':
break;
case 'rtbt-id':
break;
case 'ew-yd':
break;
case 'rtbt-sf':
break;
case 'ew-amazon':
break;
case 'obt-bp':
break;
case 'ew-wm':
break;
case 'cash-bl':
break;
case 'rtbt-en':
break;
}
Line 65:
}
// set up inputs
Line 98:
if( frequency !== 'monthly' ){
frequency = 'onetime';
params['recurring'] = 'false';
} else {
params['recurring'] = 'true';
Line 110 ⟶ 111:
}
mw.donationForm.addAnalytics();
if (validateForm(form)) {
Line 118 ⟶ 119:
}
// stuffs parameters into utm_source to make them available for analytics
|