r95937 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95936‎ | r95937 | r95938 >
Date:05:36, 1 September 2011
Author:pgehres
Status:resolved (Comments)
Tags:
Comment:
Adding test 2 with billing information above CC details.
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/html/globalcollect_test_2.html (added) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/html/globalcollect_test_2.html
@@ -0,0 +1,282 @@
 2+<style>
 3+ .step2hidden{ display:none; }
 4+</style>
 5+<link rel="stylesheet" href="https://payments.wikimedia.org/skins/vector/main-ltr.css" />
 6+<link rel="stylesheet" href="https://payments.wikimedia.org/extensions/DonationInterface/payflowpro_gateway/forms/css/TwoStepTwoColumnLetter3.css" />
 7+
 8+<link rel="stylesheet" href="https://payments.wikimedia.org/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.css" />
 9+
 10+
 11+
 12+
 13+<table width="100%" cellspacing="0" cellpadding="0" border="0">
 14+ <tr>
 15+ <td id="appeal" valign="top">
 16+ <div style="margin:9em 0;">
 17+ <table class="quote"
 18+ style="margin: auto; border-collapse: collapse; border-style: none; background-color: transparent; width: auto; margin: 10px auto;">
 19+ <tr>
 20+ <td width="20" valign="top"
 21+ style="color: rgb(178, 183, 242); font-size: 40px; font-family: &#39;Times New Roman&#39;,serif; font-weight: bold; text-align: left; padding: 10px;">
 22+ “
 23+ </td>
 24+ <td valign="top" style="padding: 4px 5px; font-size: 26px; line-height: 30px;">Imagine a
 25+ world in which every single person on the planet has free access to the sum of all
 26+ human knowledge.
 27+ </td>
 28+ <td width="20" valign="bottom"
 29+ style="color: rgb(178, 183, 242); font-size: 40px; font-family: &#39;Times New Roman&#39;,serif; font-weight: bold; text-align: right; padding: 10px;">
 30+ ”
 31+ </td>
 32+ </tr>
 33+ <tr>
 34+ <td style="padding-right: 4%;" colspan="3">
 35+ <p style="font-size: 18px; text-align: right;"><cite
 36+ style="font-style: normal;">&mdash;Jimmy Wales, Founder of Wikipedia</cite>
 37+ </p>
 38+ </td>
 39+ </tr>
 40+ </table>
 41+ </div>
 42+ </td>
 43+ <td id="donate" valign="top">
 44+ <noscript>
 45+ <div id="noscript"><p id="noscript-msg">It appears that you do not have JavaScript enabled, or
 46+ your browser does not support it.
 47+ In order to provide a safe, secure and pleasant experience, our donation form requires
 48+ JavaScript.</p>
 49+
 50+ <p id="noscript-redirect-msg">If you cannot or do not wish to enable JavaScript, you may
 51+ still contribute by visiting:</p>
 52+
 53+ <p id="noscript-redirect-link"><a href="http://wikimediafoundation.org/wiki/DonateNonJS/en">http://wikimediafoundation.org/wiki/DonateNonJS/en</a>
 54+ </p></div>
 55+ </noscript>
 56+ <h2 id="donate-head">Please complete your donation below ...</h2>
 57+
 58+ <p class='creditcard-error-msg'></p>
 59+
 60+ <form name="payment" method="post"
 61+ action="/index.php/Special:PayflowProGateway?uselang=en&amp;masthead=none&amp;form_name=TwoStepTwoColumnLetter3&amp;text_template=2010%2FJimmyQuote"
 62+ onsubmit="return formCheck(this)" autocomplete="off">
 63+ <div id="payflowpro_gateway-personal-info">
 64+ <table id="payflow-table-donor">
 65+ <tr>
 66+ <td colspan="2"><span class="creditcard-error-msg"></span></td>
 67+ </tr>
 68+ <tr class="step2hidden">
 69+ <td colspan="2"><h3 class="cc_header">Billing information<img
 70+ src="https://test-payments.tesla.usability.wikimedia.org/extensions/DonationInterface/payflowpro_gateway/includes/padlock.gif"
 71+ style="vertical-align:baseline;margin-left:8px;"/></h3></td>
 72+ </tr>
 73+ <tr>
 74+ <td class="label"><label for="card_num">Address</label></td>
 75+ <td>@fname @mname @lname<br />@street<br />@city, @state @zip</td>
 76+ </tr>
 77+ <tr>
 78+ <td class="label"><label for="card_num">Email</label></td>
 79+ <td>@emailAdd</td>
 80+ </tr>
 81+ <tr>
 82+ <td class="label"><label for="card_num">Amount</label></td>
 83+ <td>@currency_code @amount</td>
 84+ </tr>
 85+ <tr>
 86+ <td class="label"></td>
 87+ <td><img
 88+ src="https://payments.wikimedia.org/extensions/DonationInterface/payflowpro_gateway/includes/credit_card_logos.gif"/>
 89+ </td>
 90+ </tr>
 91+ <tr>
 92+ <td class="label"><label for="card_num">Card number</label></td>
 93+ <td><input name="card_num" size="30" value="@card_num" type="text" maxlength="100"
 94+ id="card_num" class="fullwidth" autocomplete="off"/></td>
 95+ </tr>
 96+ <tr>
 97+ <td class="label"><label for="expiration">Expiration date</label></td>
 98+ <td><select name="mos" id="expiration">
 99+ <option value="01">1 (January)</option>
 100+ <option value="02">2 (February)</option>
 101+ <option value="03">3 (March)</option>
 102+ <option value="04">4 (April)</option>
 103+ <option value="05">5 (May)</option>
 104+ <option value="06">6 (June)</option>
 105+ <option value="07">7 (July)</option>
 106+ <option value="08">8 (August)</option>
 107+ <option value="09">9 (September)</option>
 108+ <option value="10">10 (October)</option>
 109+ <option value="11">11 (November)</option>
 110+ <option value="12">12 (December)</option>
 111+ </select> / <select name="year" id="year">
 112+ <option value="2011">2011</option>
 113+ <option value="2012">2012</option>
 114+ <option value="2013">2013</option>
 115+ <option value="2014">2014</option>
 116+ <option value="2015">2015</option>
 117+ <option value="2016">2016</option>
 118+ <option value="2017">2017</option>
 119+ <option value="2018">2018</option>
 120+ <option value="2019">2019</option>
 121+ <option value="2020">2020</option>
 122+ <option value="2021">2021</option>
 123+ </select></td>
 124+ </tr>
 125+ <tr>
 126+ <td colspan=2><span class="creditcard-error-msg"></span></td>
 127+ <tr>
 128+ <td class="label"><label for="cvv">Security code</label></td>
 129+ <td><input name="cvv" size="5" value="@cvv" type="text" maxlength="10" id="cvv"
 130+ autocomplete="off"/> <a href="javascript:PopupCVV();">Where is this?</a>
 131+ </td>
 132+ </tr>
 133+ <tr>
 134+ <td colspan=2><span class="creditcard-error-msg"></span></td>
 135+ </tr>
 136+ <tr>
 137+ <td colspan=2><span class="creditcard-error-msg"></span></td>
 138+ </tr>
 139+ <tr class="step2hidden">
 140+ <td class="label"><label for="fname">Name on card</label></td>
 141+ <td><input name="fname" size="30" value="@fname" type="text"
 142+ onfocus="clearField( this, &#039;First name&#039; )" maxlength="25"
 143+ class="required" id="fname"/>
 144+ <input name="lname" size="30" value="@lname"
 145+ type="text"
 146+ onfocus="clearField( this, &#039;Last name&#039; )"
 147+ maxlength="25" id="lname"/></td>
 148+ </tr>
 149+ <tr class="step2hidden">
 150+ <td colspan=2><span class="creditcard-error-msg"></span></td>
 151+ </tr>
 152+ <tr class="step2hidden">
 153+ <td class="label"><label for="street">Billing address</label></td>
 154+ <td><input name="street" size="30" value="@street" type="text"
 155+ onfocus="clearField( this, &#039;Street&#039; )" maxlength="100"
 156+ id="street" class="fullwidth"/></td>
 157+ </tr>
 158+ <tr class="step2hidden">
 159+ <td colspan=2><span class="creditcard-error-msg"></span></td>
 160+ </tr>
 161+ <tr class="step2hidden">
 162+ <td class="label"></td>
 163+ <td><input name="city" size="18" value="@city" type="text"
 164+ onfocus="clearField( this, &#039;City&#039; )" maxlength="40" id="city"/>
 165+ <select name="state" id="state">
 166+ <option value=""/>
 167+ <option value="AK">AK</option>
 168+ <option value="AL">AL</option>
 169+ <option value="AR">AR</option>
 170+ <option value="AZ">AZ</option>
 171+ <option value="CA">CA</option>
 172+ <option value="CO">CO</option>
 173+ <option value="CT">CT</option>
 174+ <option value="DC">DC</option>
 175+ <option value="DE">DE</option>
 176+ <option value="FL">FL</option>
 177+ <option value="GA">GA</option>
 178+ <option value="HI">HI</option>
 179+ <option value="IA">IA</option>
 180+ <option value="ID">ID</option>
 181+ <option value="IL">IL</option>
 182+ <option value="IN">IN</option>
 183+ <option value="KS">KS</option>
 184+ <option value="KY">KY</option>
 185+ <option value="LA">LA</option>
 186+ <option value="MA">MA</option>
 187+ <option value="MD">MD</option>
 188+ <option value="ME">ME</option>
 189+ <option value="MI">MI</option>
 190+ <option value="MN">MN</option>
 191+ <option value="MO">MO</option>
 192+ <option value="MS">MS</option>
 193+ <option value="MT">MT</option>
 194+ <option value="NC">NC</option>
 195+ <option value="ND">ND</option>
 196+ <option value="NE">NE</option>
 197+ <option value="NH">NH</option>
 198+ <option value="NJ">NJ</option>
 199+ <option value="NM">NM</option>
 200+ <option value="NV">NV</option>
 201+ <option value="NY">NY</option>
 202+ <option value="OH">OH</option>
 203+ <option value="OK">OK</option>
 204+ <option value="OR">OR</option>
 205+ <option value="PA">PA</option>
 206+ <option value="PR">PR</option>
 207+ <option value="RI">RI</option>
 208+ <option value="SC">SC</option>
 209+ <option value="SD">SD</option>
 210+ <option value="TN">TN</option>
 211+ <option value="TX">TX</option>
 212+ <option value="UT">UT</option>
 213+ <option value="VA">VA</option>
 214+ <option value="VT">VT</option>
 215+ <option value="WA">WA</option>
 216+ <option value="WI">WI</option>
 217+ <option value="WV">WV</option>
 218+ <option value="WY">WY</option>
 219+ <option value="AA">AA</option>
 220+ <option value="AE">AE</option>
 221+ <option value="AP">AP</option>
 222+ </select> <input name="zip" size="5" value="" type="text"
 223+ onfocus="clearField( this, &#039;Zip code&#039; )"
 224+ maxlength="10" id="zip"/><input type="hidden" value="@country"
 225+ name="country"/></td>
 226+ </tr>
 227+ <tr class="step2hidden">
 228+ <td colspan=2><span class="creditcard-error-msg"></span></td>
 229+ </tr>
 230+ <tr class="step2hidden">
 231+ <td class="label"><label for="emailAdd">E-mail receipt to</label></td>
 232+ <td><input name="emailAdd" size="30" value="@emailAdd" type="text"
 233+ onfocus="clearField( this, &#039;Email address&#039; )" maxlength="64"
 234+ id="emailAdd" class="fullwidth"/></td>
 235+ </tr>
 236+ <tr>
 237+ <td class="label"></td>
 238+ <td>
 239+ <div id="mw-donate-submit-button">&#160;<br/><input
 240+ src="https://test-payments.tesla.usability.wikimedia.org/extensions/DonationInterface/payflowpro_gateway/includes/submit-donation-button.png"
 241+ alt="Submit donation" type="image"/></div>
 242+ <div class="mw-donate-submessage" id="payflowpro_gateway-donate-submessage"><img src="https://payments.wikimedia.org/extensions/DonationInterface/payflowpro_gateway/includes/padlock.gif" style="vertical-align:baseline;margin-right:4px;">Your credit / debit card will be securely processed.</div>
 243+ </td>
 244+ </tr>
 245+ </table>
 246+ </div>
 247+ <input type="hidden" value="@utm_source" name="utm_source"/>
 248+ <input type="hidden" value="@utm_medium" name="utm_medium"/>
 249+ <input type="hidden" value="@utm_campaign" name="utm_campaign"/>
 250+ <input type="hidden" value="@language" name="language"/>
 251+ <input type="hidden" value="@referrer" name="referrer"/>
 252+ <input type="hidden" value="@comment" name="comment"/>
 253+ <input type="hidden" value="@comment-option" name="comment-option"/>
 254+ <input type="hidden" value="@email-opt" name="email-opt"/>
 255+ <input type="hidden" value="@payment_method" name="payment_method"/>
 256+ <input type="hidden" value="@token" name="token"/>
 257+ <input type="hidden" value="@order_id" name="order_id"/>
 258+ <input type="hidden" value="@num_attempt" name="numAttempt"/>
 259+ <input type="hidden" value="@contribution_tracking_id" name="contribution_tracking_id"/>
 260+ <input type="hidden" value="@data_hash" name="data_hash"/>
 261+ <input type="hidden" value="@action" name="action"/>
 262+ <input type="hidden" value="@owa_session" name="owa_session"/>
 263+ <input type="hidden" value="@owa_ref" name="owa_ref"/>
 264+ </form>
 265+ <div class="payflow-cc-form-section" id="payflowpro_gateway-donate-addl-info">
 266+ <div id="payflowpro_gateway-donate-addl-info-text">
 267+ <div style="text-align:center;">* * *</div>
 268+ <div class="">We do not store your credit card information, and your personal data is
 269+ subject to our <a target="_new"
 270+ href="http://wikimediafoundation.org/wiki/Donor_Privacy_Policy">privacy
 271+ policy</a>.
 272+ </div>
 273+ <div class="">There are <a target="_new"
 274+ href="http://wikimediafoundation.org/wiki/Ways_to_Give/en">other
 275+ ways to give</a>, including by check.
 276+ </div>
 277+ <div class="">Questions or comments? Contact: <a href="mailto:donate@wikimedia.org">donate@wikimedia.org</a>
 278+ </div>
 279+ </div>
 280+ </div>
 281+ </td>
 282+ </tr>
 283+</table>
\ No newline at end of file

Follow-up revisions

RevisionCommit summaryAuthorDate
r96030Changes for tomorrow's US testpgehres19:41, 1 September 2011

Comments

#Comment by Awjrichards (talk | contribs)   15:50, 2 September 2011

Hardcoded URLs for resources etc shouldn't be here and have been removed as of

#Comment by Awjrichards (talk | contribs)   15:50, 2 September 2011

It looks like clicking 'Associate' in Follow-up revisions submits your comments for you... anyways, I wasn't quite finished. Those hardcoded urls have been removed as of r96030.

Status & tagging log