-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1eb6756
commit 9df80ff
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
use OxidSolutionCatalysts\Unzer\Exception\Redirect; | ||
use OxidSolutionCatalysts\Unzer\Exception\RedirectWithMessage; | ||
use OxidSolutionCatalysts\Unzer\Model\Payment; | ||
use OxidSolutionCatalysts\Unzer\Model\Order as UnzerOrder; | ||
use OxidSolutionCatalysts\Unzer\Service\DebugHandler; | ||
use OxidSolutionCatalysts\Unzer\Service\ModuleSettings; | ||
use OxidSolutionCatalysts\Unzer\Service\Payment as PaymentService; | ||
|
@@ -122,7 +123,7 @@ public function unzerExecuteAfterRedirect(): void | |
if ($oBasket->getProductsCount()) { | ||
$oDB = DatabaseProvider::getDb(); | ||
|
||
/** @var \OxidSolutionCatalysts\Unzer\Model\Order $oOrder */ | ||
/** @var UnzerOrder $oOrder */ | ||
$oOrder = $this->getActualOrder(); | ||
|
||
$oDB->startTransaction(); | ||
|
@@ -215,7 +216,7 @@ public function isSepaConfirmed(): ?bool | |
*/ | ||
public function saveUnzerTransaction(): void | ||
{ | ||
/** @var \OxidSolutionCatalysts\Unzer\Model\Order $order */ | ||
/** @var UnzerOrder $oOrder */ | ||
$order = $this->getActualOrder(); | ||
Check failure on line 220 in src/Controller/OrderController.php GitHub Actions / styles (8.0)
|
||
$order->initWriteTransactionToDB(); | ||
} | ||
|
@@ -264,7 +265,7 @@ public function getUserCountryIso(): string | |
*/ | ||
public function getActualOrder(): Order | ||
{ | ||
if (!($this->actualOrder instanceof \OxidSolutionCatalysts\Unzer\Model\Order)) { | ||
if (!($this->actualOrder instanceof Order)) { | ||
$this->actualOrder = oxNew(Order::class); | ||
/** @var string $sess_challenge */ | ||
$sess_challenge = Registry::getSession()->getVariable('sess_challenge'); | ||
|
@@ -445,7 +446,7 @@ private function isPaymentCancelled(PaymentService $paymentService): bool | |
/** | ||
* @throws \OxidSolutionCatalysts\Unzer\Exception\Redirect | ||
*/ | ||
private function redirectUserToCheckout(Unzer $unzerService, \OxidSolutionCatalysts\Unzer\Model\Order $order) | ||
private function redirectUserToCheckout(Unzer $unzerService, Order $order) | ||
{ | ||
$translator = $this->getServiceFromContainer(Translator::class); | ||
$unzerOrderNr = $order->getUnzerOrderNr(); | ||
|