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