Template:2011FR/Form-section-processing: Difference between revisions

Content deleted Content added
Seddon (WMF) (talk | contribs)
No edit summary
Cbarr (talk | contribs)
No edit summary
Line 3:
<script type="text/javascript" language="javascript">
function redirectPayment(i) {
//if i == 1cc
var paymentType ="cc";
var action_url = "https://payments.wikimedia.org/index.php/Special:GlobalCollectGateway?uselang=</html>{{int:lang}}<html>\x26masthead=</html>{{{GC-masthead|none}}}<html>\x26form_name=</html>{{{GC-form-name|RapidHtml}}}<html>\x26text_template=</html>{{{GC-text-template|2010/JimmyQuote}}}<html>\x26appeal=</html>{{{appeal|Appeal-default}}}<html>\x26language=</html>{{int:lang}}<html>\x26ffname=</html>{{{GC-ffname-CC|webitects2nd}}}<html>";
Line 53:
function redirectPayment(i) {
 
//if i == 1cc
var paymentType ="cc";
var action_url = "https://payments.wikimedia.org/index.php/Special:PayflowProGateway?uselang=</html>{{int:lang}}\x26masthead={{{PF-masthead|none}}}\x26form_name={{{PF-form-name|TwoStepTwoColumnLetter2}}}\x26text_template={{{PF-text-template|2010/JimmyQuote}}}\x26language={{int:lang}}\x26ffname={{{PF-ffname}}}<html>";
 
if (i==2pp) {
paymentType = "pp";
action_url="https://wikimediafoundation.org/wiki/Special:ContributionTracking/</html>{{int:lang}}<html>";
}
 
if (i=="rpp"){
paymentType= "pp";
action_url="https://wikimediafoundation.org/wiki/Special:ContributionTracking/</html>{{int:lang}}<html>";
 
var recurring = document.createElement("input");
recurring.type = "hidden";
recurring.name = "recurring_paypal";
recurring.id = "recurring-hidden";
recurring.value = "true";
document.paypalcontribution.appendChild(recurring);
}
document.paypalcontribution.action = action_url;