Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php |
— | — | @@ -381,7 +381,7 @@ |
382 | 382 | * include in string (i.e. Vendor, password) |
383 | 383 | */ |
384 | 384 | private function fnPayflowProcessTransaction( $data, $payflow_data ) { |
385 | | - global $wgOut, $wgDonationTestingMode, $wgPayflowGatewayUseHTTPProxy, $wgPayflowGatewayHTTPProxy; |
| 385 | + global $wgOut, $wgDonationTestingMode, $wgPayflowGatewayUseHTTPProxy, $wgPayflowGatewayHTTPProxy, $wgPayflowProTimeout; |
386 | 386 | |
387 | 387 | // update contribution tracking |
388 | 388 | $this->updateContributionTracking( $data, defined( 'OWA' ) ); |
— | — | @@ -429,7 +429,7 @@ |
430 | 430 | curl_setopt( $ch, CURLOPT_USERAGENT, $user_agent ); |
431 | 431 | curl_setopt( $ch, CURLOPT_HEADER, 1 ); |
432 | 432 | curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ); |
433 | | - curl_setopt( $ch, CURLOPT_TIMEOUT, 5 ); |
| 433 | + curl_setopt( $ch, CURLOPT_TIMEOUT, $wgPayflowProTimeout ); |
434 | 434 | curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 0 ); |
435 | 435 | curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, 0 ); |
436 | 436 | curl_setopt( $ch, CURLOPT_POSTFIELDS, $payflow_query ); |
Index: trunk/extensions/DonationInterface/payflowpro_gateway/extras/minfraud/minfraud.body.php |
— | — | @@ -215,6 +215,8 @@ |
216 | 216 | * Perform the min fraud query and capture the response |
217 | 217 | */ |
218 | 218 | public function query_minfraud( array $minfraud_query ) { |
| 219 | + global $wgMinFraudTimeout; |
| 220 | + $this->get_ccfd()->timeout = $wgMinFraudTimeout; |
219 | 221 | $this->get_ccfd()->input( $minfraud_query ); |
220 | 222 | $this->get_ccfd()->query(); |
221 | 223 | $this->minfraud_response = $this->get_ccfd()->output(); |
Index: trunk/extensions/DonationInterface/payflowpro_gateway/extras/minfraud/minfraud.php |
— | — | @@ -48,6 +48,9 @@ |
49 | 49 | 'reject' => array( -1, -1 ) |
50 | 50 | ); |
51 | 51 | |
| 52 | +// Timeout in seconds for communicating with MaxMind |
| 53 | +$wgMinFraudTimeout = 2; |
| 54 | + |
52 | 55 | /** |
53 | 56 | * Define whether or not to run minFraud in stand alone mode |
54 | 57 | * |
Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.php |
— | — | @@ -54,6 +54,9 @@ |
55 | 55 | // a boolean to determine if we're in testing mode |
56 | 56 | $wgPayflowGatewayTest = FALSE; |
57 | 57 | |
| 58 | +// timeout in seconds for communicating with paypal |
| 59 | +$wgPayflowProTimeout = 2; |
| 60 | + |
58 | 61 | /** |
59 | 62 | * The default form to use |
60 | 63 | */ |