amazon-pay-sdk-php
amazon-pay-sdk-php copied to clipboard
enable user configuration of curl options connecttimeout and timeout
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.