Difference between revisions 23154 and 23155 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}}}";
   alert( ffnames );
  return;
   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>\x26form_name=</html>{{{GC-CC-form-name|RapidHtml}}}<html>\x26appeal=JimmyQuote"
    if(monthlyDonation == true) {
(contracted; show full)    }
    document.paypalcontribution.submit();
  }
}
</script>
</html>
<!-- End of NON-GlobalCollect handling code -->
}}</div>