v9

latestOpenAPI 3.1.0MITraw.githubusercontent.com2026-05-05502770.7 KB
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