Template:2011FR/form-template-default-3: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
Cbarr (talk | contribs)
No edit summary
Cbarr (talk | contribs)
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 104: Line 104:


function redirectPayment(i) {
function redirectPayment(i) {

var recurring = document.createElement("input");
var recurring = document.createElement("input");
recurring.type = "hidden";
recurring.type = "hidden";
Line 113: Line 114:
//if i == 1
//if i == 1
var paymentType ="cc";
var paymentType ="cc";
var action_url = "https://payments.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>" ;
var action_url = "https://payments.wikimedia.org/index.php/Special:PayflowProGateway?uselang=</html>{{{uselang}}}\x26masthead={{{masthead|none}}}\x26form_name={{{form-name|TwoStepTwoColumnLetter2}}}\x26text_template={{{text-template|2010/JimmyQuote}}}\x26language={{{uselang}}}\x26ffname={{{ffname}}}<html>" ;
//TESLA TESTING
//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>" ;
//var action_url = "https://test-payments.tesla.usability.wikimedia.org/index.php/Special:PayflowProGateway?uselang=</html>{{{uselang}}}\x26masthead={{{masthead|none}}}\x26form_name={{{form-name|TwoStepTwoColumnLetter2}}}\x26text_template={{{text-template|2010/JimmyQuote}}}\x26language={{{uselang}}}\x26ffname={{{ffname}}}<html>" ;
// Staging
// 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>" ;
//var action_url = "https://payments4.wikimedia.org/index.php/Special:PayflowProGateway?uselang=</html>{{{uselang}}}\x26masthead={{{masthead|none}}}\x26form_name={{{form-name|TwoStepTwoColumnLetter2}}}\x26text_template={{{text-template|2010/JimmyQuote}}}\x26language={{{uselang}}}\x26ffname={{{ffname}}}<html>" ;


if (i==2) {
if (i==2) {
paymentType = "pp";
paymentType = "pp";
document.getElementById("input_amount_other").checked=true;
//document.getElementById("input_amount_other").checked=true;
document.getElementsByName("amountGiven")[0].value = document.getElementById("floating-amount-field").value;
//document.getElementsByName("amountGiven")[0].value = document.getElementById("floating-amount-field").value;
document.paypalcontribution.removeChild(document.getElementById("recurring-hidden"));
document.paypalcontribution.removeChild(document.getElementById("recurring-hidden"));
action_url="https://wikimediafoundation.org/wiki/Special:ContributionTracking/</html>{{{language|{{BASEPAGENAME}}}}}<html>";
action_url="https://wikimediafoundation.org/wiki/Special:ContributionTracking/</html>{{{language|{{BASEPAGENAME}}}}}<html>";
Line 129: Line 130:
if (i==3) {
if (i==3) {
paymentType = "rpp";
paymentType = "rpp";
document.getElementById("input_amount_other").checked=true;
//document.getElementById("input_amount_other").checked=true;
document.getElementsByName("amountGiven")[0].value = document.getElementById("floating-amount-field").value;
//document.getElementsByName("amountGiven")[0].value = document.getElementById("floating-amount-field").value;
action_url="https://wikimediafoundation.org/wiki/Special:ContributionTracking/</html>{{{language|{{BASEPAGENAME}}}}}<html>";
action_url="https://wikimediafoundation.org/wiki/Special:ContributionTracking/</html>{{{language|{{BASEPAGENAME}}}}}<html>";
}
}
Line 136: Line 137:
document.paypalcontribution.action = action_url;
document.paypalcontribution.action = action_url;
document.paypalcontribution.utm_source.value = getQuerystring( 'utm_source' ) + '.' + getLandingPage() + '.' + paymentType;
document.paypalcontribution.utm_source.value = getQuerystring( 'utm_source' ) + '.' + getLandingPage() + '.' + paymentType;

if (validateForm(document.paypalcontribution)) {
if (validateForm(document.paypalcontribution)) {
if(typeof(OWA) !== 'undefined'){OWATracker.shareStateByPost( document.paypalcontribution );}
if(typeof(OWA) !== 'undefined'){OWATracker.shareStateByPost( document.paypalcontribution );}
Line 161: Line 163:
<!-- <input type="hidden" name="language" value="</html>{{{uselang}}}<html>" /> -->
<!-- <input type="hidden" name="language" value="</html>{{{uselang}}}<html>" /> -->
<input type="hidden" name="referrer" value="" />
<input type="hidden" name="referrer" value="" />
<input type="hidden" name="country" value="US" />
<input type="hidden" name="country" value="</html>{{{country}}}<html>" />
<!-- <input type="hidden" name="country" value="</html>{{{country}}}<html>" /> -->
<!-- <input type="hidden" name="country" value="</html>{{{country}}}<html>" /> -->
<input type="hidden" name="returnto" value="Thank_You/</html>{{{uselang}}}<html>" />
<input type="hidden" name="returnto" value="Thank_You/</html>{{{uselang}}}<html>" />
<input type="hidden" name="email-opt" id="input_email" value="1" checked="checked" />
<input type="hidden" name="email-opt" id="input_email" value="1" checked="checked" />
<input type="hidden" name="currency_code" value="</html>{{2011FR/core-currency-code|{{{country}}}}}<html>"/>
<input type="hidden" name="currency_code" value="</html>{{2011FR/core-currency-code|{{{country}}}}}<html>"/>

<input type="hidden" name="amountGiven" value="" />


<div>
<div>
Line 179: Line 183:
</div>
</div>
<div id="BT-donate-button">
<div id="BT-donate-button">
<input type="button" class="button" value="</html>{{int:donate_interface-BT-button}}<html>" onclick="displayForcedChoice()"/>
<input type="button" class="button" value="</html>{{int:donate_interface-BT-button}}<html>" onclick="redirectPayment('2');"/>
</div>
</div>
<div id="DD-donate-button">
<div id="DD-donate-button">
<input type="button" class="button" value="</html>{{int:donate_interface-DD-button}}<html>" onclick="displayForcedChoice()"/>
<input type="button" class="button" value="</html>{{int:donate_interface-DD-button}}<html>" onclick="redirectPayment('2');"/>
</div>
</div>
<div id="RT-donate-button">
<div id="RT-donate-button">
<input type="button" class="button" value="</html>{{int:donate_interface-RT-button}}<html>" onclick="displayForcedChoice()"/>
<input type="button" class="button" value="</html>{{int:donate_interface-RT-button}}<html>" onclick="redirectPayment('2');"/>
</div>
</div>
</div>
</div>
Line 191: Line 195:
<div style="padding-top: 1em; width:20em;">
<div style="padding-top: 1em; width:20em;">
</html>{{Template:LanguageSwitch|2011FR/core-appeal-whitebox|{{{uselang}}}}}<html>
</html>{{Template:LanguageSwitch|2011FR/core-appeal-whitebox|{{{uselang}}}}}<html>
</div>
<div>
<!-- </html>{{2011FR/Form-section-popup}}<html> -->
</div>
</div>
</form>
</form>

Latest revision as of 20:48, 4 November 2011

By donating, you are sharing your information with the Wikimedia Foundation, the nonprofit organization that hosts Wikipedia and other Wikimedia projects, and its service providers in the U.S. and elsewhere pursuant to our donor privacy policy. We do not sell or trade your information to anyone. For more information please read .