From 997f54ff53858d76cda1644a9ee318f9e8f1aae6 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Mon, 18 Nov 2013 13:15:39 +0000 Subject: [PATCH] Gestion du retour --- application/controllers/ReportController.php | 2 +- library/Paybox/Response.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/controllers/ReportController.php b/application/controllers/ReportController.php index a31ec82..0600ec8 100644 --- a/application/controllers/ReportController.php +++ b/application/controllers/ReportController.php @@ -250,7 +250,7 @@ class ReportController extends Zend_Controller_Action $this->view->montant = $c->profil->report->montantht." € HT" . " (".$c->profil->report->montant." € TTC)"; //Paybox - $paybox = new Paybox_System(true); + $paybox = new Paybox_System(false); $paybox->setUrlPaiement(); $paybox->setEmail($row->email); $paybox->setReference($cmdId); diff --git a/library/Paybox/Response.php b/library/Paybox/Response.php index 0cac638..b8093ab 100644 --- a/library/Paybox/Response.php +++ b/library/Paybox/Response.php @@ -173,8 +173,8 @@ class Paybox_Response $vars = array('eta'); foreach ( $vars as $var ) { if ( method_exists($this, 'check'.ucfirst($var)) ) { - if ( $this->{'check'.ucfirst($var)}() === false ) { - return false; + if ( $this->{'check'.ucfirst($var)}() === true ) { + return true; } } }