forked from LiveCarta/PayPal-PHP-SDK
Duplicate conditional expression in PayPalCredentialManager.php
Looks like this should be `ClientSecret`?
This commit is contained in:
@@ -96,7 +96,7 @@ class PayPalCredentialManager
|
|||||||
$key = $prefix . $suffix;
|
$key = $prefix . $suffix;
|
||||||
$userName = null;
|
$userName = null;
|
||||||
while (in_array($key, $arrayPartKeys)) {
|
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;
|
$userName = $key;
|
||||||
$this->credentialHashmap[$userName] = new OAuthTokenCredential(
|
$this->credentialHashmap[$userName] = new OAuthTokenCredential(
|
||||||
$credArr[$key . ".ClientId"],
|
$credArr[$key . ".ClientId"],
|
||||||
|
|||||||
Reference in New Issue
Block a user