Exceptions
AuthenticationException — échec OAuth2
Levé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
Response
Classe AuthenticationException