Difference between revisions 22556 and 22662 on donatewiki

<div>{{#ifeq:{{{handler}}}|GC
|<!-- Start of GlobalCollect handling code -->
<html>
<script type="text/javascript">

function redirectPayment(i) {
    document.getElementsByName("currency_code")[0].value="</html>{{{currency|{{2012FR/Switch/Currency/Code|{{{country}}}}}}}}<html>";
//************************************ credit card ************************************
(contracted; show full)>{{{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>";
  }

//************************************** 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}}}\x26payment_method=yd<html>";
  }

  if (i=="ew-mb") {
    paymentType = "ppew";
    action_url="https://wikimediafoundation.org/wiki/Special:ContributionTracking/</html>{{int:lang}}<html>";
    var gateway = document.createElement("input");	 
        gateway.type = "hidden";	
        gateway.name = "gateway";	
        gateway.value = "moneybookers";
        document.paypalcontribution.appendChild(gateway);
  }
(contracted; show full)    }
    document.paypalcontribution.submit();
  }
}
</script>
</html>
<!-- End of NON-GlobalCollect handling code -->
}}</div>