Difference between revisions 23382 and 23383 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"

(contracted; show full)pecial: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|ew-webmoney}}}\x26payment_method=wm<html>";
  }

  if ( i == 'ew-amazon' ) {

    paymentType = "amazon";
    var action_url = "https://payments.wikimedia.org/index.php/Special:AmazonGateway?redirect=1&\x26uselang=</html>{{int:lang}}<html>";
  }


//************************************** needs to be configured **************************************
  if (i=="ew-yd") {
    paymentType = "ew";

(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>