Template:2011FR/lp-form-US7amounts-wherebox-GC: Difference between revisions

Content deleted Content added
Jalexander (talk | contribs)
Created page with "<html> <script type="text/javascript" language="javascript"> function validateForm( form ) { var minimums = { 'USD' : 1, 'GBP' : 1, // $1.26 'EUR' : 1, // $1.2..."
 
Pgehres (WMF) (talk | contribs)
No edit summary
 
(14 intermediate revisions by 3 users not shown)
Line 75:
//if i == 1
var paymentType ="cc";
var action_url = "https://payments.wikimedia.org/index.php/Special:GlobalCollectGateway?uselang=</html>{{{language}}}\x26masthead={{{masthead}}}\x26form_name={{{form-name}}}\x26text_template={{{text-template}}}\x26language={{{language|{{SUBPAGENAME}}}}}\x26ffname={{{ffname}}}\x26appeal={{{appeal}}}<html>" ;
//TESLA TESTING
//var action_url = "https://test-payments.tesla.usability.wikimedia.org/index.php/Special:PayflowProGateway?uselang=</html>{{{language}}}\x26masthead={{{masthead}}}\x26form_name={{{form-name}}}\x26text_template={{{text-template}}}\x26language={{{language|{{SUBPAGENAME}}}}}\x26ffname={{{ffname}}}<html>" ;
// Staging
//var action_url = "https://payments4.wikimedia.org/index.php/Special:PayflowProGateway?uselang=</html>{{{language}}}\x26masthead={{{masthead}}}\x26form_name={{{form-name}}}\x26text_template={{{text-template}}}\x26language={{{language|{{SUBPAGENAME}}}}}\x26ffname={{{ffname}}}<html>" ;
if (i==2) {
action_url="https://wikimediafoundation.org/wiki/Special:ContributionTracking/</html>{{{language|{{BASEPAGENAME}}}}}<html>";
paymentType = "pp";
}
if (i==3) {
action_url = "https://payments.wikimedia.org/index.php/Special:AmazonGateway?redirect=1\x26uselang=</html>{{int:lang}}<html>";
paymentType = "amazon";
}
Line 98:
<input type="hidden" name="utm_medium" value="" />
<input type="hidden" name="utm_campaign" value="" />
<input type="hidden" name="utm_key" value="" />
<input type="hidden" name="language" value="</html>{{{language|{{SUBPAGENAME}}}}}<html>" />
<input type="hidden" name="referrer" value="" />
Line 132 ⟶ 133:
<input type="button" style="width: 15em; font-size: 12px;" value="</html>{{{paypal-label}}}<html>" class="button" onclick="redirectPayment('2');"/>
</div>
 
<!-- <div id="amazon-donate-button">
<input type="button" style="width: 15em; font-size: 12px;" value="</html>{{{amazon-label}}}<html>" class="button" onclick="redirectPayment('3');"/>
</div> -->
 
</html>
Line 170 ⟶ 175:
document.paypalcontribution.utm_medium.value = getQuerystring( 'utm_medium' );
document.paypalcontribution.utm_campaign.value = getQuerystring( 'utm_campaign' );
document.paypalcontribution.utm_key.value = getQuerystring( 'utm_key' );
document.paypalcontribution.referrer.value = document.referrer;