Authentication Failure
To ensure seamless authentication, the OAuth credentials must be generated only by the Account Owner or a current Admin. If you’ve set up OAuth using the Self Client type, and the Admin who generated the credentials is removed from the account or loses their Admin role, any attempt to create a payment session using those credentials will fail.
Reasons for authentication failure:
- The user is no longer an Admin or an Account Owner.
- The user has been removed from the account.
- OAuth credentials have expired or been revoked.
- API keys have been regenerated.
To resolve this, a current Admin or the Account Owner must generate new OAuth credentials. If the API key has been regenerated, ensure to use the new key for API authentication. After updating, you can create payment sessions.
If you’re facing any authentication errors, refer to the error messages to identify and resolve the issue.