diff --git a/lib/PayPal/Core/PayPalCredentialManager.php b/lib/PayPal/Core/PayPalCredentialManager.php index adfff8dd..77a884e4 100644 --- a/lib/PayPal/Core/PayPalCredentialManager.php +++ b/lib/PayPal/Core/PayPalCredentialManager.php @@ -96,7 +96,7 @@ private function initCredential($config) $key = $prefix . $suffix; $userName = null; while (in_array($key, $arrayPartKeys)) { - if (isset($credArr[$key . ".ClientId"]) && isset($credArr[$key . ".ClientId"])) { + if (isset($credArr[$key . ".ClientId"]) && isset($credArr[$key . ".ClientSecret"])) { $userName = $key; $this->credentialHashmap[$userName] = new OAuthTokenCredential( $credArr[$key . ".ClientId"],