amazon-pay-sdk-php icon indicating copy to clipboard operation
amazon-pay-sdk-php copied to clipboard

enable user configuration of curl options connecttimeout and timeout

Open wfehr opened this issue 2 years ago • 0 comments

Description of changes:

  • enable configuration of CURLOPT_CONNECTTIMEOUT and CURLOPT_TIMEOUT

The values of these new keys are set to the defaults of curl. Now the user can also change these two values for their requirements. When server errors occur on amazons side (which can happen, as on dec 7th) you can now configure to just let the user wait for example 60s before it times out instead of 300s on each request/process.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

wfehr avatar Dec 09 '22 08:12 wfehr