Template:2011FR/Form-section-processing: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
Seddon (WMF) (talk | contribs) No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
<script type="text/javascript" language="javascript"> |
<script type="text/javascript" language="javascript"> |
||
function redirectPayment(i) { |
function redirectPayment(i) { |
||
//if i == |
//if i == cc |
||
var paymentType ="cc"; |
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>"; |
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: | Line 53: | ||
function redirectPayment(i) { |
function redirectPayment(i) { |
||
//if i == |
//if i == cc |
||
var paymentType ="cc"; |
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>"; |
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== |
if (i==pp) { |
||
paymentType = "pp"; |
paymentType = "pp"; |
||
action_url="https://wikimediafoundation.org/wiki/Special:ContributionTracking/</html>{{int:lang}}<html>"; |
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; |
document.paypalcontribution.action = action_url; |
||
Revision as of 00:42, 9 November 2011