DjomyStartException
extends DjomyException
in package
Refus de démarrer un paiement Djomy pour une raison connue avant tout appel à la passerelle.
Levée par DjomyCheckoutService::start(). Le reason permet à l'appelant d'afficher un
message adapté sans exposer de détail technique.
Table of Contents
Constants
- ALREADY_PAID : mixed = 'already_paid'
- CHECK_FAILED : mixed = 'check_failed'
- IN_PROGRESS : mixed = 'in_progress'
- INVALID_PHONE : mixed = 'invalid_phone'
- NOT_CONFIGURED : mixed = 'not_configured'
- NOT_PAYABLE : mixed = 'not_payable'
Properties
- $reason : string
- $retryMinutes : int
Methods
- __construct() : mixed
- getReason() : string
- getRetryMinutes() : int
Constants
ALREADY_PAID
public
mixed
ALREADY_PAID
= 'already_paid'
CHECK_FAILED
public
mixed
CHECK_FAILED
= 'check_failed'
IN_PROGRESS
public
mixed
IN_PROGRESS
= 'in_progress'
INVALID_PHONE
public
mixed
INVALID_PHONE
= 'invalid_phone'
NOT_CONFIGURED
public
mixed
NOT_CONFIGURED
= 'not_configured'
NOT_PAYABLE
public
mixed
NOT_PAYABLE
= 'not_payable'
Properties
$reason read-only
private
string
$reason
$retryMinutes read-only
private
int
$retryMinutes
= 0
Methods
__construct()
public
__construct(string $reason[, int $retryMinutes = 0 ]) : mixed
Parameters
- $reason : string
-
Une des constantes de la classe.
- $retryMinutes : int = 0
-
Minutes restantes avant une nouvelle tentative (motif
IN_PROGRESS).
getReason()
public
getReason() : string
Return values
string —Motif du refus (constante de la classe).
getRetryMinutes()
public
getRetryMinutes() : int
Return values
int —Minutes restantes avant qu'une nouvelle tentative soit possible (0 si non applicable).