Exceptions
ValidationException — erreur de validation
Levée quand l'API retourne une erreur de validation (422).
use QrCommunication\VivaMerchant\Exceptions\ValidationException;
try {
// ...
} catch (ValidationException $e) {
echo $e->errors;
// ['amount' => ['Amount must be positive'], ...]
}
Propriétés :
- errors (array<string, string[]>) — Erreurs par champ
get/Exceptions/ValidationException
Response
Classe ValidationException