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; } } }