Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php |
— | — | @@ -313,8 +313,8 @@ |
314 | 314 | |
315 | 315 | // check amount |
316 | 316 | if ( !preg_match( '/^\d+(\.(\d+)?)?$/', $data[ 'amount' ] ) || |
317 | | - ( (float) $this->convert_to_usd( $data[ 'currency_code' ], $data[ 'amount' ] ) <= (float) $wgPayflowPriceFloor || |
318 | | - (float) $this->convert_to_usd( $data[ 'currency_code' ], $data[ 'amount' ] ) >= (float) $wgPayflowPriceCieling ) ) { |
| 317 | + ( (float) $this->convert_to_usd( $data[ 'currency' ], $data[ 'amount' ] ) <= (float) $wgPayflowPriceFloor || |
| 318 | + (float) $this->convert_to_usd( $data[ 'currency' ], $data[ 'amount' ] ) >= (float) $wgPayflowPriceCieling ) ) { |
319 | 319 | $error['invalidamount'] = wfMsg( 'payflowpro_gateway-error-msg-invalid-amount' ); |
320 | 320 | $error_result = '1'; |
321 | 321 | } |