Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php |
— | — | @@ -135,20 +135,20 @@ |
136 | 136 | // Populate form data |
137 | 137 | $data = $this->fnGetFormData( $amount, $numAttempt, $token, $payflow_data['order_id'] ); |
138 | 138 | |
139 | | - /** |
140 | | - * handle PayPal redirection |
141 | | - * |
142 | | - * if paypal redirection is enabled ($wgPayflowGatewayPaypalURL must be defined) |
143 | | - * and the PaypalRedirect form value must be true |
144 | | - */ |
145 | | - if ( $wgRequest->getBool( 'PaypalRedirect' )) { |
146 | | - $this->paypalRedirect( $data ); |
147 | | - return; |
148 | | - } |
149 | | - |
150 | 139 | // dispatch forms/handling |
151 | 140 | if( $token_match ) { |
152 | | - |
| 141 | + |
| 142 | + /** |
| 143 | + * handle PayPal redirection |
| 144 | + * |
| 145 | + * if paypal redirection is enabled ($wgPayflowGatewayPaypalURL must be defined) |
| 146 | + * and the PaypalRedirect form value must be true |
| 147 | + */ |
| 148 | + if ( $wgRequest->getBool( 'PaypalRedirect' )) { |
| 149 | + $this->paypalRedirect( $data ); |
| 150 | + return; |
| 151 | + } |
| 152 | + |
153 | 153 | if( $data['payment_method'] == 'processed' ) { |
154 | 154 | //increase the count of attempts |
155 | 155 | ++$data['numAttempt']; |