Difference between revisions 23151 and 23277 on donatewiki<div>{{#ifeq:{{{handler}}}|GC |<!-- Start of GlobalCollect handling code --> <html> <script type="text/javascript"> function redirectPayment(i) { var paymentsBaseURL = "https://payments.wikimedia.org/index.php/Special:GlobalCollectGateway?uselang=</html>{{int:lang}}<html>\x26form_name=RapidHtml\x26appeal=JimmyQuote" var ffname = 'default';⏎ document.getElementsByName("currency_code")[0].value="</html>{{{currency|{{2012FR/Switch/Currency/Code|{{{country}}}}}}}}<html>"; //************************************ credit card ************************************ //if i == cc ⏎ var ffnames = "</html>{{{GC-CC-ffname|cc-vm}}}<html>"; ffnames = ffnames.split( ',' ); var random = Math.floor( Math.random() * ffnames.length ); var choice = ffnames[ random ]; ffname = choice;⏎ ⏎ var paymentType ="cc"; var action_url = "https://payments.wikimedia.org/index.php/Special:GlobalCollectGateway?uselang=</html>{{int:lang}}<html>\x26masthead=</html>{{{GC-CC-masthead|none}}}<html>\x26form_name=</html>{{{GC-CC-form-name|RapidHtml}}}<html>\x26text_template=</html>{{{GC-CC-text-template|2010/JimmyQuote-green}}}<html>\x26appeal=JimmyQuote-green\x26language=</html>{{int:lang}}<html>appeal=JimmyQuote" if(monthlyDonation == true) { action_url += ("\x26ffname=</html>{{{GC-CC-ffname|cc-vm}}}<html>").replace('cc','rcc'); } else { action_url += "\x26ffname=</html>{{{GC-CC-ffname|cc-vm}}}<html>" + choice + ""; } //************************************ credit card ************************************ //****************************** realtime ************************************************** if (i=="rtbt-id") { var action_url = "https://payments.wikimedia.org/index.php/Special:GlobalCollectGateway?uselang=</html>{{int:lang}}<html>\x26masthead=</html>{{{GC-RT-masthead|none}}}<html>\x26form_name=</html>{{{GC-RT-form-name|RapidHtml}}}<html>\x26text_template=</html>{{{GC-RT-text-template|2010/JimmyQuote-green}}}<html>\x26appeal=JimmyQuote-green\x26language=</html>{{int:lang}}<html>\x26ffname=</html>{{{GC-RT-ffname|rtbt-ideal}}}\x26payment_method=rtbt<html>"; } if (i=="rtbt-eps") { var action_url = "https://payments.wikimedia.org/index.php/Special:GlobalCollectGateway?uselang=</html>{{int:lang}}<html>\x26masthead=</html>{{{GC-RT-masthead|none}}}<html>\x26form_name=</html>{{{GC-RT-form-name|RapidHtml}}}<html>\x26text_template=</html>{{{GC-RT-text-template|2010/JimmyQuote-green}}}<html>\x26appeal=JimmyQuote-green\x26language=</html>{{int:lang}}<html>\x26ffname=</html>{{{GC-RT-ffname|rtbt-eps}}}\x26payment_method=rtbt<html>"; } if (i=="rtbt-sf") { var action_url = "https://payments.wikimedia.org/index.php/Special:GlobalCollectGateway?uselang=</html>{{int:lang}}<html>\x26masthead=</html>{{{GC-RT-masthead|none}}}<html>\x26form_name=</html>{{{GC-RT-form-name|RapidHtml}}}<html>\x26text_template=</html>{{{GC-RT-text-template|2010/JimmyQuote-green}}}<html>\x26appeal=JimmyQuote-green\x26language=</html>{{int:lang}}<html>\x26ffname=</html>{{{GC-RT-ffname|rtbt-sofo}}}\x26payment_method=rtbt<html>"; } if (i=="rtbt-en") { var action_url = "https://payments.wikimedia.org/index.php/Special:GlobalCollectGateway?uselang=</html>{{int:lang}}<html>\x26masthead=</html>{{{GC-RT-masthead|none}}}<html>\x26form_name=</html>{{{GC-RT-form-name|RapidHtml}}}<html>\x26text_template=</html>{{{GC-RT-text-template|2010/JimmyQuote-green}}}<html>\x26appeal=JimmyQuote-green\x26language=</html>{{int:lang}}<html>\x26ffname=</html>{{{GC-RT-ffname|rtbt-enets}}}\x26payment_method=rtbt<html>"; } //****************************** realtime ************************************************** //****************************** Bank Transfer *********************************** if (i=="bt") { var action_url = "https://payments.wikimedia.org/index.php/Special:GlobalCollectGateway?uselang=</html>{{int:lang}}<html>\x26masthead=</html>{{{GC-BT-masthead|none}}}<html>\x26form_name=</html>{{{GC-BT-form-name|RapidHtml}}}<html>\x26text_template=</html>{{{GC-BT-text-template|2010/JimmyQuote-green}}}<html>\x26appeal=JimmyQuote-green\x26language=</html>{{int:lang}}<html>\x26ffname=</html>{{{GC-BT-ffname|bt}}}\x26payment_method=bt<html>"; } //****************************** Online Bank Transfer *********************************** if (i=="obt-bp") { var action_url = "https://payments.wikimedia.org/index.php/Special:GlobalCollectGateway?uselang=</html>{{int:lang}}<html>\x26masthead=</html>{{{GC-BP-masthead|none}}}<html>\x26form_name=</html>{{{GC-BP-form-name|RapidHtml}}}<html>\x26text_template=</html>{{{GC-BP-text-template|2010/JimmyQuote-green}}}<html>\x26appeal=JimmyQuote-green\x26language=</html>{{int:lang}}<html>\x26ffname=</html>{{{GC-BP-ffname|obt-bpay}}}\x26payment_method=obt<html>"; } //****************************** Direct Debit *********************************** if (i=="dd") { var action_url = "https://payments.wikimedia.org/index.php/Special:GlobalCollectGateway?uselang=</html>{{int:lang}}<html>\x26masthead=</html>{{{GC-DD-masthead|none}}}<html>\x26form_name=</html>{{{GC-DD-form-name|RapidHtml}}}<html>\x26text_template=</html>{{{GC-DD-text-template|2010/JimmyQuote-green}}}<html>\x26appeal=JimmyQuote-green\x26language=</html>{{int:lang}}<html>\x26ffname=</html>{{{GC-DD-ffname|webitects2nd}}}\x26payment_method=dd<html>ffname = "</html>{{{GC-RT-ffname|rtbt-ideal}}}<html>"; action_url += "\x26ffname=" + ffname + "\x26payment_method=rtbt"; } if (i=="rtbt-eps") { ffname = "</html>{{{GC-RT-ffname|rtbt-eps}}}<html>"; action_url += "\x26ffname=" + ffname + "\x26payment_method=rtbt"; } if (i=="rtbt-sf") { ffname = "</html>{{{GC-RT-ffname|rtbt-sofo}}}<html>"; action_url += "\x26ffname=" + ffname + "\x26payment_method=rtbt"; } if (i=="rtbt-en") { ffname = "</html>{{{GC-RT-ffname|rtbt-enets}}}<html>"; action_url += "\x26ffname=" + ffname + "\x26payment_method=rtbt"; } //****************************** realtime ************************************************** //****************************** Bank Transfer *********************************** if (i=="bt") { ffname = "</html>{{{GC-BT-ffname|bt}}}<html>"; action_url += "\x26ffname=" + ffname + "\x26payment_method=obt"; } //****************************** Online Bank Transfer *********************************** if (i=="obt-bp") { ffname = "</html>{{{GC-BP-ffname|obt-bpay}}}<html>"; action_url += "\x26ffname=" + ffname + "\x26payment_method=obt"; } //****************************** Direct Debit *********************************** if (i=="dd") { ffname = "</html>{{{GC-DD-ffname|webitects2nd}}}<html>"; action_url += "\x26ffname=" + ffname + "\x26payment_method=dd"; } //****************************** Direct Debit *********************************** //********************************** eWallets ******************************************* if (i=="ew-pp") { paymentType = "pp"; (contracted; show full) } //************************************** needs to be configured ************************************** if (i=="ew-yd") { paymentType = "ew"; var action_url = "https://payments.wikimedia.org/index.php/Special:GlobalCollectGateway?uselang=</html>{{int:lang}}<html>\x26masthead=</html>{{{GC-YD-masthead|none}}}<html>\x26form_name=</html>{{{GC-YD-form-name|RapidHtml}}}<html>\x26text_template=</html>{{{GC-YD-text-template|2010/JimmyQuote-green}}}<html>\x26appeal=JimmyQuote-green\x26language=</html>{{int:lang}}<html>\x26ffname=</html>{{{GC-YD-ffname|ew-yandex}}}<html>⏎ ffname = "</html>{{{GC-YD-ffname|ew-yandex}}}}<html>"; action_url += "\x26ffname=" + ffname + "\x26payment_method=ew"; } if (i=="ew-mb") { paymentType = "ew"; action_url="https://wikimediafoundation.org/wiki/Special:ContributionTracking/</html>{{int:lang}}<html>"; var gateway = document.createElement("input"); gateway.type = "hidden"; (contracted; show full) if(getQuerystring( 'form-countryspecific' )=='') { document.paypalcontribution.utm_source.value += 'control'; } else { document.paypalcontribution.utm_source.value += getQuerystring( 'form-countryspecific' ).replace("Form-countryspecific-",""); } document.paypalcontribution.utm_source.value += '.' + ffname;⏎ ⏎ document.paypalcontribution.utm_source.value += '.' + paymentType; document.paypalcontribution.utm_campaign.value = getQuerystring( 'utm_campaign' ); //****************************** End Faulkner ****************************************************** if (i=="ew-pp-usd"||i=="ew-pp-eur") { if(typeof(OWA) !== 'undefined') { (contracted; show full) if(getQuerystring( 'form-countryspecific' )=='') { document.paypalcontribution.utm_source.value += 'control'; } else { document.paypalcontribution.utm_source.value += getQuerystring( 'form-countryspecific' ).replace("Form-countryspecific-",""); } document.paypalcontribution.utm_source.value += '.' + ffname;⏎ ⏎ document.paypalcontribution.utm_source.value += '.' + paymentType; document.paypalcontribution.utm_campaign.value = getQuerystring( 'utm_campaign' ); //****************************** End Faulkner ****************************************************** if (validateForm(document.paypalcontribution)) { if(typeof(OWA) !== 'undefined') { OWATracker.shareStateByPost( document.paypalcontribution ); } document.paypalcontribution.submit(); } } </script> </html> <!-- End of NON-GlobalCollect handling code --> }}</div> All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://donate.wikipedia.org/w/index.php?diff=prev&oldid=23277.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|