r110440 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110439‎ | r110440 | r110441 >
Date:22:22, 31 January 2012
Author:pgehres
Status:ok
Tags:fundraising 
Comment:
Adding Amex-only credit card form
Modified paths:
  • /trunk/extensions/DonationInterface/globalcollect_gateway/forms/html/cc/cc-a.html (added) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/globalcollect_gateway/forms/html/cc/cc-a.html
@@ -0,0 +1,117 @@
 2+<script type="text/javascript">
 3+ mw.loader.load('gc.form.rapidhtml.cc');
 4+ // these must go through RapidHTML and thus are inline
 5+ var amountErrors = ['#general|escape','#retryMsg|escape','#amount|escape'];
 6+ var billingErrors = ['#fname|escape','#lname|escape','#city|escape','#country|escape','#street|escape','#state|escape','#zip|escape','#emailAdd|escape'];
 7+ var paymentErrors = ['#card_num|escape','#card_type|escape','#cvv|escape'];
 8+ var actionURL = "@action";
 9+ var scriptPath = "@script_path";
 10+</script>
 11+
 12+<table width="100%" cellspacing="0" cellpadding="0" border="0">
 13+ <tbody>
 14+ <tr>
 15+ <td id="appeal" valign="top">
 16+ {{LanguageSwitch|2011FR/@appeal/text|@language}}
 17+ </td>
 18+ <td id="donate" valign="top">
 19+ <div id="greenBackground" class="">
 20+ <noscript>
 21+ <div id="noscript">
 22+ <p id="noscript-msg">%donate_interface-noscript-msg%</p>
 23+ <p id="noscript-redirect-msg">%donate_interface-noscript-redirect-msg%</p>
 24+ <p id="noscript-redirect-link">
 25+ <a href="https://wikimediafoundation.org/wiki/Special:LandingCheck?basic=true&landing_page=DonateNonJS&language=@language&uselang=@language&country=@country">https://wikimediafoundation.org/wiki/Special:LandingCheck?basic=true&landing_page=DonateNonJS&language=@language&uselang=@language&country=@country</a>
 26+ </p>
 27+ </div>
 28+ </noscript>
 29+ <p id="topError" class="creditcard-error-msg"></p>
 30+
 31+ <form name="payment" method="post" action="@action">
 32+ <div id="payflowpro_gateway-personal-info">
 33+ <table id="payflow-table-donor">
 34+ <tbody>
 35+ <tr>
 36+ <td colspan="2">
 37+ <div id="step1header">
 38+ <h3 class="amount_header">%donate_interface-amount-legend%: <span id="selected-amount">{% block donation-amount currency_code %}</span></h3>
 39+ </div>
 40+ </td>
 41+ </tr>
 42+ {% block personal-information country %}
 43+ <tr>
 44+ <td>
 45+ <dl class="">
 46+ <dd class="field" style="margin-bottom: 0; margin-left: 0;">
 47+ <ul class="options-h" id="cards" style="margin: 0;">
 48+ <!--<li><input id="cc-visa" name="cardtype" type="radio" value="visa" class="cardradio" /> <label for="cc-visa"><img alt="Visa" src="@script_path/extensions/DonationInterface/gateway_forms/includes/card-visa.png" /></label></li>-->
 49+ <!--<li><input id="cc-mastercard" name="cardtype" type="radio" value="mastercard" class="cardradio" /> <label for="cc-mastercard"><img alt="MasterCard" src="@script_path/extensions/DonationInterface/gateway_forms/includes/card-mastercard.png" /></label></li>-->
 50+ <li><input id="cc-amex" name="cardtype" type="radio" value="american" class="cardradio" /> <label for="cc-amex"><img alt="American Express" src="@script_path/extensions/DonationInterface/gateway_forms/includes/card-amex.png" /></label></li>
 51+ <!--<li><input id="cc-discover" name="cardtype" type="radio" value="discover" class="cardradio" /> <label for="cc-discover"><img alt="Discover" src="@script_path/extensions/DonationInterface/gateway_forms/includes/card-discover.png" /></label></li>-->
 52+ <!--<li><input id="cc-jcb" name="cardtype" type="radio" value="jcb" class="cardradio" /> <label for="cc-jcb"><img alt="JCB" src="@script_path/extensions/DonationInterface/gateway_forms/includes/card-jcb.png" /></label></li>-->
 53+ </ul>
 54+ <div id="paymentContinue" style="margin-top: 10px; display: none;"> <input class="btn" id="paymentContinueBtn" type="button" value="%donate_interface-continue%" /></div>
 55+ </dd>
 56+ </dl>
 57+ </td>
 58+ </tr>
 59+ <tr>
 60+ <td>
 61+ <div id="payment" class="gainlayout" style="height:0px;text-align:center;"></div>
 62+ </td>
 63+ </tr>
 64+ <tr>
 65+ <td>
 66+ <div class="mw-donate-submessage" id="payflowpro_gateway-donate-submessage">
 67+ <img src="@script_path/extensions/DonationInterface/gateway_forms/includes/padlock.gif" style="vertical-align:baseline;margin-right:4px;"> %donate_interface-donate-click%
 68+ </div>
 69+ </td>
 70+ </tr>
 71+ </tbody>
 72+ </table>
 73+ </div>
 74+ <input type="hidden" name="gateway" value="payflowpro" id="gateway" />
 75+ <input type="hidden" name="returnto" value="Thank_You/en" />
 76+ <input type="hidden" value="0" name="PaypalRedirect" id="PaypalRedirect">
 77+ <input type="hidden" value="@amount" name="amount">
 78+ <!-- This should be included in the personal_information templates -->
 79+ <!--<input type="hidden" value="@country" name="country" id="country" />-->
 80+ <input type="hidden" value="@expiration" name="expiration" id="expiration"/>
 81+ <input type="hidden" value="@currency_code" name="currency_code" />
 82+ <input type="hidden" value="@utm_source" name="utm_source"/>
 83+ <input type="hidden" value="@utm_medium" name="utm_medium"/>
 84+ <input type="hidden" value="@utm_campaign" name="utm_campaign"/>
 85+ <input type="hidden" value="@language" name="language"/>
 86+ <input type="hidden" value="@referrer" name="referrer"/>
 87+ <input type="hidden" value="@comment" name="comment"/>
 88+ <input type="hidden" value="@comment-option" name="comment-option"/>
 89+ <input type="hidden" value="1" name="email-opt"/>
 90+ <input type="hidden" value="@token" name="token"/>
 91+ <input type="hidden" value="@order_id" name="order_id"/>
 92+ <input type="hidden" value="@numAttempt" name="numAttempt"/>
 93+ <input type="hidden" value="@contribution_tracking_id" name="contribution_tracking_id"/>
 94+ <input type="hidden" value="@data_hash" name="data_hash"/>
 95+ <input type="hidden" value="@owa_session" name="owa_session"/>
 96+ <input type="hidden" value="@owa_ref" name="owa_ref"/>
 97+ <input type="hidden" value="@gateway" name="gateway"/>
 98+ <input type="hidden" value="cc" name="payment_method"/>
 99+ </form>
 100+ </div>
 101+ <p id="informationsharing">%donate_interface-informationsharing|url%</p>
 102+ <table>
 103+ <tr>
 104+ <td>
 105+ <ul id="moreinfolinks">
 106+ <li><a href="https://wikimediafoundation.org/wiki/Special:LandingCheck?basic=true&landing_page=Monthly_donations&language=@language&uselang=@language&country=@country">%donate_interface-monthly-donation%</a></li>
 107+ <li><a href="https://wikimediafoundation.org/wiki/Special:LandingCheck?basic=true&landing_page=Ways_to_Give&language=@language&uselang=@language&country=@country">%donate_interface-otherways-short%</a></li>
 108+ <li><a href="https://wikimediafoundation.org/wiki/Special:LandingCheck?basic=true&landing_page=FAQ&language=@language&uselang=@language&country=@country">%donate_interface-faqs%</a></li>
 109+ <li><a href="https://wikimediafoundation.org/wiki/Special:LandingCheck?basic=true&landing_page=Tax_Deductibility&language=@language&uselang=@language&country=@country">%donate_interface-tax-info%</a></li>
 110+ </ul>
 111+ </td>
 112+ <td>@verisign_logo</td>
 113+ </tr>
 114+ </table>
 115+ </td>
 116+ </tr>
 117+ </tbody>
 118+</table>
Property changes on: trunk/extensions/DonationInterface/globalcollect_gateway/forms/html/cc/cc-a.html
___________________________________________________________________
Added: svn:eol-style
1119 + native

Follow-up revisions

RevisionCommit summaryAuthorDate
r110819MFT r109685, r110438, r110440, r110448, r110736, r110773, r110800, r110803khorn02:23, 7 February 2012

Status & tagging log