DjomyReconcileCommand
extends Command
in package
Réconciliation planifiée des paiements Djomy restés en attente.
Djomy ne renvoie jamais le client sur BCard : un paiement réussi n'est connu que par le webhook. Si celui-ci
n'arrive pas, le paiement resterait PENDING indéfiniment. Cette commande relit auprès de Djomy le statut des
paiements en attente dans une fenêtre d'âge donnée et solde ceux qui sont payés, avec les mêmes contrôles que
DjomyWebhookController (statut SUCCESS et référence marchande désignant ce paiement).
Les statuts d'échec ou d'annulation ne modifient rien. Aucun secret, jeton ni numéro de téléphone n'est journalisé.
Attributes
- #[AsCommand]
- $name: 'app:djomy:reconcile'
- $description: 'Vérifie auprès de Djomy les paiements en attente et valide ceux qui sont payés'
Table of Contents
Constants
- SOURCE : mixed = 'djomy_reconcile'
Properties
- $djomyService : DjomyService
- $entityManager : EntityManagerInterface
- $logger : LoggerInterface
- $paymentFulfillmentService : PaymentFulfillmentService
Methods
- __construct() : mixed
- configure() : void
- execute() : int
Constants
SOURCE
private
mixed
SOURCE
= 'djomy_reconcile'
Properties
$djomyService read-only
private
DjomyService
$djomyService
$entityManager read-only
private
EntityManagerInterface
$entityManager
$logger read-only
private
LoggerInterface
$logger
$paymentFulfillmentService read-only
private
PaymentFulfillmentService
$paymentFulfillmentService
Methods
__construct()
public
__construct(DjomyService $djomyService, PaymentFulfillmentService $paymentFulfillmentService, EntityManagerInterface $entityManager, LoggerInterface $logger) : mixed
Parameters
- $djomyService : DjomyService
- $paymentFulfillmentService : PaymentFulfillmentService
- $entityManager : EntityManagerInterface
- $logger : LoggerInterface
configure()
protected
configure() : void
execute()
protected
execute(InputInterface $input, OutputInterface $output) : int
Parameters
- $input : InputInterface
- $output : OutputInterface