Template:2011FR/lp-form-US7amounts-wherebox-GC: Difference between revisions
Jump to navigation
Jump to search
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..." |
No edit summary |
||
(14 intermediate revisions by 3 users not shown) | |||
Line 75: | Line 75: | ||
//if i == 1 |
//if i == 1 |
||
var paymentType ="cc"; |
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}}}<html>" ; |
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) { |
if (i==2) { |
||
action_url="https://wikimediafoundation.org/wiki/Special:ContributionTracking/</html>{{{language|{{BASEPAGENAME}}}}}<html>"; |
action_url="https://wikimediafoundation.org/wiki/Special:ContributionTracking/</html>{{{language|{{BASEPAGENAME}}}}}<html>"; |
||
paymentType = "pp"; |
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: | Line 98: | ||
<input type="hidden" name="utm_medium" value="" /> |
<input type="hidden" name="utm_medium" value="" /> |
||
<input type="hidden" name="utm_campaign" 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="language" value="</html>{{{language|{{SUBPAGENAME}}}}}<html>" /> |
||
<input type="hidden" name="referrer" value="" /> |
<input type="hidden" name="referrer" value="" /> |
||
Line 132: | Line 133: | ||
<input type="button" style="width: 15em; font-size: 12px;" value="</html>{{{paypal-label}}}<html>" class="button" onclick="redirectPayment('2');"/> |
<input type="button" style="width: 15em; font-size: 12px;" value="</html>{{{paypal-label}}}<html>" class="button" onclick="redirectPayment('2');"/> |
||
</div> |
</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> |
</html> |
||
Line 170: | Line 175: | ||
document.paypalcontribution.utm_medium.value = getQuerystring( 'utm_medium' ); |
document.paypalcontribution.utm_medium.value = getQuerystring( 'utm_medium' ); |
||
document.paypalcontribution.utm_campaign.value = getQuerystring( 'utm_campaign' ); |
document.paypalcontribution.utm_campaign.value = getQuerystring( 'utm_campaign' ); |
||
document.paypalcontribution.utm_key.value = getQuerystring( 'utm_key' ); |
|||
document.paypalcontribution.referrer.value = document.referrer; |
document.paypalcontribution.referrer.value = document.referrer; |
||
Latest revision as of 04:06, 17 September 2012