Skip to content

Commit

Permalink
fix cart total amount refer
Browse files Browse the repository at this point in the history
  • Loading branch information
solverat committed Sep 26, 2016
1 parent 6c9b287 commit ab4af36
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions controllers/PostfinanceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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
);

Expand Down

0 comments on commit ab4af36

Please sign in to comment.