mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +08:00
Merge pull request #184 from woocommerce/PCP-173-5-seconds-timeout-error-in-live
Add 30 seconds timeout by default to all requests
This commit is contained in:
commit
eb8620aa7b
1 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,8 @@ trait RequestTrait {
|
|||
*/
|
||||
private function request( string $url, array $args ) {
|
||||
|
||||
$args['timeout'] = 30;
|
||||
|
||||
/**
|
||||
* This filter can be used to alter the request args.
|
||||
* For example, during testing, the PayPal-Mock-Response header could be
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue