r91572 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91571‎ | r91572 | r91573 >
Date:18:05, 6 July 2011
Author:kaldari
Status:ok
Tags:
Comment:
updating for new country values
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php (modified) (history)
  • /trunk/extensions/DonationInterface/payflowpro_gateway/validate_input.js (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/validate_input.js
@@ -64,7 +64,7 @@
6565 output += "Country:" + countryField.options[countryField.selectedIndex].value + '.\r\n';
6666
6767 //set state to "outside us"
68 - if ( document.payment.country.value != '840' ) {
 68+ if ( document.payment.country.value != 'US' ) {
6969 document.payment.state.value = 'XX';
7070 }
7171
@@ -94,7 +94,7 @@
9595
9696 function disableStates( form ) {
9797
98 - if ( document.payment.country.value != '840' ) {
 98+ if ( document.payment.country.value != 'US' ) {
9999 document.payment.state.value = 'XX';
100100 } else {
101101 document.payment.state.value = 'YY';
Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php
@@ -1002,14 +1002,14 @@
10031003 'city' => 'San Francisco',
10041004 'state' => 'CA',
10051005 'zip' => '94104',
1006 - 'country' => 840,
 1006+ 'country' => 'US',
10071007 'fname2' => 'Testy',
10081008 'lname2' => 'Testerson',
10091009 'street2' => '123 Telegraph Ave.',
10101010 'city2' => 'Berkeley',
10111011 'state2' => 'CA',
10121012 'zip2' => '94703',
1013 - 'country2' => 840,
 1013+ 'country2' => 'US',
10141014 'size' => 'small',
10151015 'premium_language' => 'es',
10161016 'card_num' => $card_nums[ $cards[ $card_index ]][ $card_num_index ],

Follow-up revisions

RevisionCommit summaryAuthorDate
r96118MFT r91572awjrichards16:11, 2 September 2011
r101033MFT r92829, r91572awjrichards20:18, 27 October 2011

Status & tagging log