Exceptions
AuthenticationException — échec OAuth2
Changed onLevée quand l'authentification OAuth2 échoue (identifiants invalides, token expiré non renouvelable).
use QrCommunication\VivaMerchant\Exceptions\AuthenticationException;
try {
$viva->account->info();
} catch (AuthenticationException $e) {
echo $e->getMessage(); // 'OAuth2 authentication failed: ...'
// httpStatus = 401
}
get/Exceptions/AuthenticationException
Request
- The document declares no server URL.
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Classe AuthenticationException
Changes
- info
endpoint added
- info