Added an ability to provide Curl Options in Configuration

- Removed http.Retry, and http.ConnectionTimeout from configuration
- Added ability to provide Constant and its value in Configuration File
This commit is contained in:
japatel
2015-01-10 21:04:24 -06:00
parent 810fe7994c
commit dd99971e50
6 changed files with 34 additions and 9 deletions

View File

@@ -54,7 +54,7 @@ class PayPalRestCall
{
$config = $this->apiContext->getConfig();
$httpConfig = new PayPalHttpConfig(null, $method);
$httpConfig = new PayPalHttpConfig(null, $method, $config);
$headers = $headers ? $headers : array();
$httpConfig->setHeaders($headers +
array(