Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php |
— | — | @@ -87,8 +87,8 @@ |
88 | 88 | // find out if amount was a radio button or textbox, set amount |
89 | 89 | if( isset( $_REQUEST['amount'] ) && preg_match( '/^\d+(\.(\d+)?)?$/', $wgRequest->getText( 'amount' ) ) ) { |
90 | 90 | $amount = $wgRequest->getText( 'amount' ); |
91 | | - } elseif( isset( $_REQUEST['amount2'] ) && preg_match( '/^\d+(\.(\d+)?)?$/', $wgRequest->getText( 'amount2' ) ) ) { |
92 | | - $amount = number_format( $wgRequest->getText( 'amount2' ), 2, '.', '' ); |
| 91 | + } elseif( isset( $_REQUEST['amountGiven'] ) && preg_match( '/^\d+(\.(\d+)?)?$/', $wgRequest->getText( 'amountGiven' ) ) ) { |
| 92 | + $amount = number_format( $wgRequest->getText( 'amountGiven' ), 2, '.', '' ); |
93 | 93 | } elseif( isset( $_REQUEST['amount'] ) ) { |
94 | 94 | $amount = '0.00'; |
95 | 95 | } else { |