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

@@ -204,7 +204,7 @@ class OAuthTokenCredential extends PayPalResourceModel
*/
private function getToken($config, $clientId, $clientSecret, $payload)
{
$httpConfig = new PayPalHttpConfig(null, 'POST');
$httpConfig = new PayPalHttpConfig(null, 'POST', $config);
$handlers = array(self::$AUTH_HANDLER);