Template:2011FR/Form-section-processing: Difference between revisions
Content deleted Content added
BT added? |
No edit summary |
||
Line 19:
if (i=="dd"){
var action_url = "https://payments.wikimedia.org/index.php/Special:GlobalCollectGateway?uselang=</html>{{int:lang}}<html>\x26masthead=</html>{{{GC-masthead|none}}}<html>\x26form_name=</html>{{{GC-form-name|RapidHtml}}}<html>\x26text_template=</html>{{{GC-text-template|2010/JimmyQuote}}}<html>\x26appeal=</html>{{{appeal|Appeal-default}}}<html>\x26language=</html>{{int:lang}}<html>\x26ffname=</html>{{{GC-ffname-DD|webitects2nd}}}<html>";
}
if (i=="rt"){
var action_url = "https://payments.wikimedia.org/index.php/Special:GlobalCollectGateway?uselang=</html>{{int:lang}}<html>\x26masthead=</html>{{{GC-masthead|none}}}<html>\x26form_name=</html>{{{GC-form-name|RapidHtml}}}<html>\x26text_template=</html>{{{GC-text-template|2010/JimmyQuote}}}<html>\x26appeal=</html>{{{appeal|Appeal-default}}}<html>\x26language=</html>{{int:lang}}<html>\x26ffname=</html>{{{GC-ffname-RT|webitects2nd}}}<html>";
}
Line 29:
//document.paypalcontribution.utm_source.value = getQuerystring( 'utm_source' ) + '.' + getLandingPage() + '.' + paymentType;
document.paypalcontribution.utm_source.value = getQuerystring( 'utm_source' ) + '.' + getQuerystring( 'form-countryspecific' ) + '_' + getQuerystring( 'appeal' ) + '.' + paymentType;
document.paypalcontribution.utm_campaign.value = getQuerystring( 'utm_campaign' ) + '_' + getQuerystring( 'country' );
Line 47 ⟶ 46:
//if i == 1
var paymentType ="cc";
var action_url = "https://payments.wikimedia.org/index.php/Special:PayflowProGateway?uselang=</html>{{int:lang}}\x26masthead={{{PF-masthead|none}}}\x26form_name={{{PF-form-name|TwoStepTwoColumnLetter2}}}\x26text_template={{{PF-text-template|2010/JimmyQuote}}}\x26language={{int:lang}}\x26ffname={{{PF-ffname}}}<html>"
if (i==2) {
Line 60 ⟶ 55:
document.paypalcontribution.action = action_url;
//document.paypalcontribution.utm_source.value = getQuerystring( 'utm_source' ) + '.' + getLandingPage() + '.' + paymentType;▼
//document.paypalcontribution.utm_source.value = getQuerystring( 'utm_source' ) + '.' + getLandingPage() + '.' + '</html>{{{form-countryspecific}}}<html>' + '_' + '</html>{{{appeal}}}<html>' + '.' + paymentType;
document.paypalcontribution.utm_source.value = getQuerystring( 'utm_source' ) + '.' + getQuerystring( 'form-countryspecific' ) + '_' + getQuerystring( 'appeal' ) + '.' + paymentType;
▲
if (validateForm(document.paypalcontribution)) {
|