Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php |
— | — | @@ -157,7 +157,9 @@ |
158 | 158 | $this->fnPayflowDisplayForm( $data, $this->errors ); |
159 | 159 | } else { // The submitted form data is valid, so process it |
160 | 160 | // allow any external validators to have their way with the data |
| 161 | + wfDebugLog( 'payflowpro_gateway', 'Preparing to query MaxMind' ); |
161 | 162 | wfRunHooks( 'PayflowGatewayValidate', array( &$this, &$data ) ); |
| 163 | + wfDebugLog( 'payflowpro_gateway', 'Finished querying Maxmind' ); |
162 | 164 | |
163 | 165 | // if the transaction was flagged for review |
164 | 166 | if ( $this->action == 'review' ) { |
— | — | @@ -448,12 +450,15 @@ |
449 | 451 | $i = 1; |
450 | 452 | |
451 | 453 | while ( $i++ <= 3 ) { |
| 454 | + wfDebugLog( 'payflowpro_gateway', 'Preparing to send transaction to PayflowPro' ); |
452 | 455 | $result = curl_exec( $ch ); |
453 | 456 | $headers = curl_getinfo( $ch ); |
454 | 457 | |
455 | 458 | if ( $headers['http_code'] != 200 && $headers['http_code'] != 403 ) { |
| 459 | + wfDebugLog( 'payflowpro_gateway', 'Failed sending transaction to PayflowPro, retrying' ); |
456 | 460 | sleep( 5 ); |
457 | 461 | } elseif ( $headers['http_code'] == 200 || $headers['http_code'] == 403 ) { |
| 462 | + wfDebugLog( 'payflowpro_gateway', 'Finished sending transaction to PayflowPro' ); |
458 | 463 | break; |
459 | 464 | } |
460 | 465 | } |
Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.php |
— | — | @@ -55,7 +55,7 @@ |
56 | 56 | $wgPayflowGatewayTest = FALSE; |
57 | 57 | |
58 | 58 | // timeout in seconds for communicating with paypal |
59 | | -$wgPayflowProTimeout = 2; |
| 59 | +$wgPayflowProTimeout = 5; |
60 | 60 | |
61 | 61 | /** |
62 | 62 | * The default form to use |