r105584 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105583‎ | r105584 | r105585 >
Date:20:33, 8 December 2011
Author:pgehres
Status:ok
Tags:
Comment:
Adding recurring cc form for US
Modified paths:
  • /trunk/extensions/DonationInterface/globalcollect_gateway/forms/html/rcc (added) (history)
  • /trunk/extensions/DonationInterface/globalcollect_gateway/forms/html/rcc/rcc-US.html (added) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/globalcollect_gateway/forms/html/rcc/rcc-US.html
@@ -0,0 +1,139 @@
 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"><a href="https://www.mediawiki.org//wikimediafoundation.org/wiki/DonateNonJS/en">wikimediafoundation.org/wiki/DonateNonJS/en</a></p>
 25+ </div>
 26+ </noscript>
 27+ <p id="topError" class="creditcard-error-msg"></p>
 28+
 29+ <form name="payment" method="post" action="@action">
 30+ <div id="payflowpro_gateway-personal-info">
 31+ <table id="payflow-table-donor">
 32+ <tbody>
 33+ <tr>
 34+ <td colspan="2">
 35+ <div id="step1header">
 36+ <h3 class="amount_header">%donate_interface-amount-recurring% <span id="selected-amount">$@amount</span></h3>
 37+ </div>
 38+ </td>
 39+ </tr>
 40+ <tr>
 41+ <td colspan="2"><h3 class="cc_header">%donate_interface-cc-form-header-personal%<img src="@script_path/extensions/DonationInterface/gateway_forms/includes/padlock.gif" style="vertical-align:baseline;margin-left:8px;"></h3></td>
 42+ </tr>
 43+ <tr>
 44+ <td colspan="2"><input name="fname" value="@fname" type="text" placeholder="First name" id="fname"><input name="lname" value="@lname" type="text" placeholder="Last name" id="lname"></td>
 45+ </tr>
 46+ <tr>
 47+ <td colspan="2"><span class="creditcard-error-msg"></span></td>
 48+ </tr>
 49+ <tr>
 50+ <td colspan="2"><input name="street" value="@street" type="text" placeholder="Street" id="street"></td>
 51+ </tr>
 52+ <tr>
 53+ <td colspan="2"><span class="creditcard-error-msg"></span></td>
 54+ </tr>
 55+ <tr>
 56+ <td colspan="2"><input name="city" value="@city" type="text" placeholder="City" id="city">
 57+ <select id="state" name="state" value="@state" >
 58+ <option value=""></option>
 59+ <option value="AK">AK</option><option value="AL">AL</option><option value="AR">AR</option><option value="AZ">AZ</option><option value="CA">CA</option><option value="CO">CO</option><option value="CT">CT</option><option value="DC">DC</option><option value="DE">DE</option><option value="FL">FL</option><option value="GA">GA</option><option value="HI">HI</option><option value="IA">IA</option><option value="ID">ID</option><option value="IL">IL</option><option value="IN">IN</option><option value="KS">KS</option><option value="KY">KY</option><option value="LA">LA</option><option value="MA">MA</option><option value="MD">MD</option><option value="ME">ME</option><option value="MI">MI</option><option value="MN">MN</option><option value="MO">MO</option><option value="MS">MS</option><option value="MT">MT</option><option value="NC">NC</option><option value="ND">ND</option><option value="NE">NE</option><option value="NH">NH</option><option value="NJ">NJ</option><option value="NM">NM</option><option value="NV">NV</option><option value="NY">NY</option><option value="OH">OH</option><option value="OK">OK</option><option value="OR">OR</option><option value="PA">PA</option><option value="PR">PR</option><option value="RI">RI</option><option value="SC">SC</option><option value="SD">SD</option><option value="TN">TN</option><option value="TX">TX</option><option value="UT">UT</option><option value="VA">VA</option><option value="VT">VT</option><option value="WA">WA</option><option value="WI">WI</option><option value="WV">WV</option><option value="WY">WY</option><option value="AA">AA</option><option value="AE">AE</option><option value="AP">AP</option>
 60+ </select>
 61+ <input name="zip" value="@zip" type="text" placeholder="Zip code" id="zip">
 62+ </td>
 63+ </tr>
 64+ <tr>
 65+ <td colspan="2"><input name="emailAdd" value="@emailAdd" type="text" placeholder="Email address" id="emailAdd"></td>
 66+ </tr>
 67+ <tr>
 68+ <td>
 69+ <dl class="">
 70+ <dd class="field" style="margin-bottom: 0; margin-left: 0;">
 71+ <ul class="options-h" id="cards" style="margin: 0;">
 72+ <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>
 73+ <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>
 74+ <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>
 75+ <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>
 76+ </ul>
 77+ <div id="paymentContinue" style="margin-top: 10px; display: none;"> <input class="btn" id="paymentContinueBtn" type="button" value="%donate_interface-continue%" /></div>
 78+ </dd>
 79+ </dl>
 80+ </td>
 81+ </tr>
 82+ <tr>
 83+ <td>
 84+ <div id="payment" class="gainlayout" style="height:0px;text-align:center;"></div>
 85+ </td>
 86+ </tr>
 87+ <tr>
 88+ <td>
 89+ <div class="mw-donate-submessage" id="payflowpro_gateway-donate-submessage">
 90+ <img src="@script_path/extensions/DonationInterface/gateway_forms/includes/padlock.gif" style="vertical-align:baseline;margin-right:4px;">%donate_interface-donate-click%
 91+ </div>
 92+ </td>
 93+ </tr>
 94+ </tbody>
 95+ </table>
 96+ </div>
 97+ <input type="hidden" name="gateway" value="payflowpro" id="gateway" />
 98+ <input type="hidden" name="returnto" value="Thank_You/en" />
 99+ <input type="hidden" value="0" name="PaypalRedirect" id="PaypalRedirect">
 100+ <input type="hidden" value="@amount" name="amount">
 101+ <input type="hidden" value="US" name="country" id="country" />
 102+ <input type="hidden" value="@expiration" name="expiration" id="expiration"/>
 103+ <input type="hidden" value="USD" name="currency_code" />
 104+ <input type="hidden" value="@utm_source" name="utm_source"/>
 105+ <input type="hidden" value="@utm_medium" name="utm_medium"/>
 106+ <input type="hidden" value="@utm_campaign" name="utm_campaign"/>
 107+ <input type="hidden" value="@language" name="language"/>
 108+ <input type="hidden" value="@referrer" name="referrer"/>
 109+ <input type="hidden" value="@comment" name="comment"/>
 110+ <input type="hidden" value="@comment-option" name="comment-option"/>
 111+ <input type="hidden" value="1" name="email-opt"/>
 112+ <input type="hidden" value="@token" name="token"/>
 113+ <input type="hidden" value="@order_id" name="order_id"/>
 114+ <input type="hidden" value="@numAttempt" name="numAttempt"/>
 115+ <input type="hidden" value="@contribution_tracking_id" name="contribution_tracking_id"/>
 116+ <input type="hidden" value="@data_hash" name="data_hash"/>
 117+ <input type="hidden" value="@owa_session" name="owa_session"/>
 118+ <input type="hidden" value="@owa_ref" name="owa_ref"/>
 119+ <input type="hidden" value="@gateway" name="gateway"/>
 120+ <input type="hidden" value="cc" name="payment_method"/>
 121+ </form>
 122+ </div>
 123+ <p id="informationsharing">%donate_interface-informationsharing|url%</p>
 124+ <table>
 125+ <tr>
 126+ <td>
 127+ <ul id="moreinfolinks">
 128+ <li><a href="http://wikimediafoundation.org/wiki/Special:LandingCheck?landing_page=Monthly_donations&language=@language&uselang=@language&country=@country">%donate_interface-monthly-donation%</a></li>
 129+ <li><a href="http://wikimediafoundation.org/wiki/Special:LandingCheck?landing_page=Ways_to_Give&language=@language&uselang=@language&country=@country">%donate_interface-otherways-short%</a></li>
 130+ <li><a href="http://wikimediafoundation.org/wiki/Special:LandingCheck?landing_page=FAQ&language=@language&uselang=@language&country=@country">%donate_interface-faqs%</a></li>
 131+ <li><a href="http://wikimediafoundation.org/wiki/Special:LandingCheck?landing_page=Tax_Deductibility&language=@language&uselang=@language&country=@country">%donate_interface-tax-info%</a></li>
 132+ </ul>
 133+ </td>
 134+ <td>@verisign_logo</td>
 135+ </tr>
 136+ </table>
 137+ </td>
 138+ </tr>
 139+ </tbody>
 140+</table>
Property changes on: trunk/extensions/DonationInterface/globalcollect_gateway/forms/html/rcc/rcc-US.html
___________________________________________________________________
Added: svn:eol-style
1141 + native

Follow-up revisions

RevisionCommit summaryAuthorDate
r105620MFT r104539, r105534, r105584, r105593, r105594, r105600, r105611awjrichards23:56, 8 December 2011

Status & tagging log