Difference between revisions 23150 and 23154 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 ************************************
  //if i == cc

   var ffnames = "{{{GC-CC-ffname|cc-vm}}}";
   ffnames = ffnames.split( ',' );
   var random = Math.floor( Math.random() * ffnames.length );
   var choice = ffnames[ random ];

    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>" + choice + "<html>";
    }
//************************************ credit card ************************************
  
//******************************   realtime **************************************************
  if (i=="rtbt-id") {
(contracted; show full)    }
    document.paypalcontribution.submit();
  }
}
</script>
</html>
<!-- End of NON-GlobalCollect handling code -->
}}</div>