Skip to content

Commit

Permalink
Merge pull request #182 from Invertus/SV-23/ps16-improvements
Browse files Browse the repository at this point in the history
Sv 23/ps16 improvements
  • Loading branch information
GytisZum authored Jul 25, 2024
2 parents 781d604 + 2e3bc85 commit 867ec7c
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 115 deletions.
12 changes: 9 additions & 3 deletions controllers/front/notify.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,14 @@ public function postProcess()
$secureKey
));

if (!$lockResult->isSuccessful()) {
die($this->module->l('Lock already exist', self::FILENAME));
if (!SaferPayConfig::isVersion17()) {
if ($lockResult > 200) {
die($this->module->l('Lock already exists', self::FILENAME));
}
} else {
if (!$lockResult->isSuccessful()) {
die($this->module->l('Lock already exists', self::FILENAME));
}
}

if ($cart->orderExists()) {
Expand Down Expand Up @@ -95,8 +101,8 @@ public function postProcess()
);

$checkoutData->setOrderStatus($transactionStatus);

$checkoutProcessor->run($checkoutData);

$orderId = $this->getOrderId($cartId);

//TODO look into pipeline design pattern to use when object is modified in multiple places to avoid this issue.
Expand Down
4 changes: 0 additions & 4 deletions controllers/front/return.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,6 @@ private function executeTransaction($orderId, $selectedCard)
);
}

private function assertTransaction($cartId) {

}

/**
* @param int $cartId
*
Expand Down
Loading

0 comments on commit 867ec7c

Please sign in to comment.