Template:2011FR/Form-section-processing: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
Cbarr (talk | contribs)
BT added?
Cbarr (talk | contribs)
No edit summary
Line 19: Line 19:


if (i=="dd"){
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|webitects2nd}}}<html>";
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"){
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|webitects2nd}}}<html>";
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: Line 29:


//document.paypalcontribution.utm_source.value = getQuerystring( 'utm_source' ) + '.' + getLandingPage() + '.' + paymentType;
//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;
document.paypalcontribution.utm_source.value = getQuerystring( 'utm_source' ) + '.' + getQuerystring( 'form-countryspecific' ) + '_' + getQuerystring( 'appeal' ) + '.' + paymentType;
document.paypalcontribution.utm_campaign.value = getQuerystring( 'utm_campaign' ) + '_' + getQuerystring( 'country' );
document.paypalcontribution.utm_campaign.value = getQuerystring( 'utm_campaign' ) + '_' + getQuerystring( 'country' );
Line 47: Line 46:
//if i == 1
//if i == 1
var paymentType ="cc";
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>" ;
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>";
//TESLA TESTING
//var action_url = "https://test-payments.tesla.usability.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>";
// Staging
//var action_url = "https://payments4.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) {
if (i==2) {
Line 60: Line 55:
document.paypalcontribution.action = action_url;
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' ) + '.' + getLandingPage() + '.' + '</html>{{{form-countryspecific}}}<html>' + '_' + '</html>{{{appeal}}}<html>' + '.' + paymentType;
document.paypalcontribution.utm_source.value = getQuerystring( 'utm_source' ) + '.' + getQuerystring( 'form-countryspecific' ) + '_' + getQuerystring( 'appeal' ) + '.' + 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' );


if (validateForm(document.paypalcontribution)) {
if (validateForm(document.paypalcontribution)) {

Revision as of 21:49, 8 November 2011