From 954baf62968266099a6f89c2088f7c9d4604f604 Mon Sep 17 00:00:00 2001 From: Dino Kljuco Date: Mon, 31 May 2021 12:15:20 +0200 Subject: [PATCH 1/2] fixing bug for Pending State --- qentaceecheckoutpage/qentaceecheckoutpage.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/qentaceecheckoutpage/qentaceecheckoutpage.php b/qentaceecheckoutpage/qentaceecheckoutpage.php index 147ad21..2769b54 100644 --- a/qentaceecheckoutpage/qentaceecheckoutpage.php +++ b/qentaceecheckoutpage/qentaceecheckoutpage.php @@ -1355,7 +1355,12 @@ public function confirmResponse() try { $return = WirecardCEE_QPay_ReturnFactory::getInstance($response, $this->getSecret()); - $status = $return->validate(); + + if(!$return->validate()) { + return WirecardCEE_QPay_ReturnFactory::generateConfirmResponseString('Invalid response.'); + } + + $status = $return->getPaymentState(); switch ($status) { case WirecardCEE_QPay_ReturnFactory::STATE_SUCCESS: From 2b8f66804b14e465ee6c63107bd15cf3d4dcb44b Mon Sep 17 00:00:00 2001 From: Jakub Polomsky Date: Mon, 31 May 2021 12:18:24 +0200 Subject: [PATCH 2/2] update version number --- qentaceecheckoutpage/qentaceecheckoutpage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qentaceecheckoutpage/qentaceecheckoutpage.php b/qentaceecheckoutpage/qentaceecheckoutpage.php index 2769b54..7809ff3 100644 --- a/qentaceecheckoutpage/qentaceecheckoutpage.php +++ b/qentaceecheckoutpage/qentaceecheckoutpage.php @@ -121,7 +121,7 @@ public function __construct() $this->config = $this->config(); $this->name = 'qentaceecheckoutpage'; $this->tab = 'payments_gateways'; - $this->version = '3.0.0'; + $this->version = '3.0.1'; $this->author = 'QENTA'; $this->controllers = array('breakoutIFrame', 'confirm', 'payment', 'paymentIFrame'); $this->is_eu_compatible = 1; @@ -1984,4 +1984,4 @@ public function getMinorPrestaVersion() $version = explode('.', _PS_VERSION_); return $version[1]; } -} \ No newline at end of file +}