Difference between revisions 23277 and 23369 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)
  }

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

    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");	 
(contracted; show full)    }
    document.paypalcontribution.submit();
  }
}
</script>
</html>
<!-- End of NON-GlobalCollect handling code -->
}}</div>