Skip to content

Commit

Permalink
Merge pull request #22 from qenta-cee/dev
Browse files Browse the repository at this point in the history
Pending State
  • Loading branch information
jakubpolomsky authored May 31, 2021
2 parents d29a449 + 2b8f668 commit 5b77b21
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions qentaceecheckoutpage/qentaceecheckoutpage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -1979,4 +1984,4 @@ public function getMinorPrestaVersion()
$version = explode('.', _PS_VERSION_);
return $version[1];
}
}
}

0 comments on commit 5b77b21

Please sign in to comment.