You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError ClientCredentialsAuthManager::addExpiryTime(): Argument #1 ($oAuthToken) must be of type PaypalServerSdkLib\Models\OAuthToken, array given
#33
Open
lehnen opened this issue
Jan 29, 2025
· 0 comments
This happens to me, when my credentials are invalid.
In this case PaypalServerSdkLib\Authentication\ClientCredentialsAuthManager::fetchToken does not return an oAuthToken, but an array. So the next step call $this->addExpiryTime($oAuthToken); will fail.
I think there has to be a type check before.
The text was updated successfully, but these errors were encountered:
This happens to me, when my credentials are invalid.
In this case PaypalServerSdkLib\Authentication\ClientCredentialsAuthManager::fetchToken does not return an oAuthToken, but an array. So the next step call $this->addExpiryTime($oAuthToken); will fail.
I think there has to be a type check before.
The text was updated successfully, but these errors were encountered: