BCard - Documentation technique

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

Properties

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).


        
On this page

Search results