r76500 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76499‎ | r76500 | r76501 >
Date:04:37, 11 November 2010
Author:kaldari
Status:deferred
Tags:
Comment:
reverting self
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/Form.php (modified) (history)
  • /trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php
@@ -405,7 +405,7 @@
406406 'ZIP' => $data['zip'],
407407 'INVNUM' => $data['order_id'],
408408 'CVV2' => $data['cvv'],
409 - 'CURRENCY' => $data['currency_code'],
 409+ 'CURRENCY' => $data['currency'],
410410 'VERBOSITY' => $payflow_data['verbosity'],
411411 'CUSTIP' => $payflow_data['user_ip'],
412412 );
@@ -1001,7 +1001,7 @@
10021002 'card_num' => $card_nums[ $cards[ $card_index ]][ $card_num_index ],
10031003 'expiration' => date( 'my', strtotime( '+1 year 1 month' ) ),
10041004 'cvv' => '001',
1005 - 'currency_code' => 'USD',
 1005+ 'currency' => 'USD',
10061006 'payment_method' => $wgRequest->getText( 'payment_method' ),
10071007 'order_id' => $order_id,
10081008 'numAttempt' => $numAttempt,
@@ -1039,7 +1039,7 @@
10401040 'card_num' => str_replace( ' ', '', $wgRequest->getText( 'card_num' ) ),
10411041 'expiration' => $wgRequest->getText( 'mos' ) . substr( $wgRequest->getText( 'year' ), 2, 2 ),
10421042 'cvv' => $wgRequest->getText( 'cvv' ),
1043 - 'currency_code' => $wgRequest->getText( 'currency_code' ),
 1043+ 'currency' => $wgRequest->getText( 'currency_code' ),
10441044 'payment_method' => $wgRequest->getText( 'payment_method' ),
10451045 'order_id' => $order_id,
10461046 'numAttempt' => $numAttempt,
Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/Form.php
@@ -319,7 +319,7 @@
320320
321321 // generate dropdown of currency opts
322322 foreach ( $available_currencies as $value => $currency_name ) {
323 - $selected = ( $this->form_data[ 'currency_code' ] == $value ) ? true : false;
 323+ $selected = ( $this->form_data[ 'currency' ] == $value ) ? true : false;
324324 $currency_opts .= Xml::option( wfMsg( 'donate_interface-' . $value ), $value, $selected );
325325 }
326326

Status & tagging log