Exceptions
ValidationException — erreur de validation
Changed onLevé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
Request
- The document declares no server URL.
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Classe ValidationException
Changes
- info
endpoint added
- info