diff --git a/controllers/PostfinanceController.php b/controllers/PostfinanceController.php index ce0becd..96d3553 100644 --- a/controllers/PostfinanceController.php +++ b/controllers/PostfinanceController.php @@ -33,7 +33,12 @@ public function paymentReturnServerAction() $cart = \CoreShop\Model\Cart::findByCustomIdentifier( $requestData['transaction'] ); if ($cart instanceof \CoreShop\Model\Cart) { - $order = $cart->createOrder(\CoreShop\Model\Order\State::getById(\CoreShop\Model\Configuration::get("SYSTEM.ORDERSTATE.PAYMENT")), $this->getModule(), $this->cart->getTotal(), $this->view->language); + $order = $cart->createOrder( + \CoreShop\Model\Order\State::getById(\CoreShop\Model\Configuration::get("SYSTEM.ORDERSTATE.PAYMENT")), + $this->getModule(), + $cart->getTotal(), + $this->view->language + ); $payments = $order->getPayments(); @@ -70,7 +75,7 @@ public function paymentReturnAction() $order = $cart->createOrder( \CoreShop\Model\Order\State::getById(\CoreShop\Model\Configuration::get("SYSTEM.ORDERSTATE.PAYMENT")), $this->getModule(), - $this->cart->getTotal(), + $cart->getTotal(), $this->view->language );