diff --git a/src/Controller/UserAdherentController.php b/src/Controller/UserAdherentController.php index 22feaad..5de9a1f 100644 --- a/src/Controller/UserAdherentController.php +++ b/src/Controller/UserAdherentController.php @@ -175,7 +175,7 @@ class UserAdherentController extends FluxController $this->em->flush(); $this->addFlash( 'success', - $this->translator->trans('Cotisation payée ! [Payzen désactivé en attent du compte]') + $this->translator->trans('Cotisation payée ! [Paiement via Payzen temporairement désactivé]') ); return $this->redirectToRoute('index'); diff --git a/src/Utils/TAVCotisationUtils.php b/src/Utils/TAVCotisationUtils.php index 23232b4..397ecb8 100644 --- a/src/Utils/TAVCotisationUtils.php +++ b/src/Utils/TAVCotisationUtils.php @@ -56,7 +56,7 @@ class TAVCotisationUtils $profile = $flux->getDestinataire()->getProfilDeCotisation(); $cotisationAmount = $profile->getMontant(); $cotisationTaux = $profile->getTauxCotisation(); - $mlcAmount = $cotisationAmount * $cotisationTaux; + $mlcAmount = round($cotisationAmount * $cotisationTaux); // get the difference between what the user paid and what he•she's supposed to receive $amountDiff = $mlcAmount - $cotisationAmount;