forked from LiveCarta/PayPal-PHP-SDK
Enabled EC Parameters support
- Updated Api to enabled EC Parameters - Updated Tests - Updated Logging Manager - Added a feature to do validation on accessors.
This commit is contained in:
@@ -74,6 +74,7 @@ class OAuthTokenCredential
|
||||
{
|
||||
$this->clientId = $clientId;
|
||||
$this->clientSecret = $clientSecret;
|
||||
$this->logger = PPLoggingManager::getInstance(__CLASS__);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -85,8 +86,6 @@ class OAuthTokenCredential
|
||||
*/
|
||||
public function getAccessToken($config)
|
||||
{
|
||||
$this->logger = new PPLoggingManager(__CLASS__, $config);
|
||||
|
||||
// Check if Access Token is not null and has not expired.
|
||||
// The API returns expiry time as a relative time unit
|
||||
// We use a buffer time when checking for token expiry to account
|
||||
|
||||
Reference in New Issue
Block a user