diff --git a/Component/Library/src/Model/Request/SubModel/Content/ShoppingBasket.php b/Component/Library/src/Model/Request/SubModel/Content/ShoppingBasket.php index b330b431..b6a91c4a 100755 --- a/Component/Library/src/Model/Request/SubModel/Content/ShoppingBasket.php +++ b/Component/Library/src/Model/Request/SubModel/Content/ShoppingBasket.php @@ -96,7 +96,7 @@ public function toArray() $amount += floatval($unitPrice); } - $this->admittedFields['Amount']['value'] = $amount; + $this->admittedFields['Amount']['value'] = round($amount, 2); } return parent::toArray(); diff --git a/Component/Library/src/Service/Math.php b/Component/Library/src/Service/Math.php index 33554f88..da7c7c2d 100644 --- a/Component/Library/src/Service/Math.php +++ b/Component/Library/src/Service/Math.php @@ -1,6 +1,7 @@ getShippingCost(), $shippingData->getShippingTax()) : $shippingData->getShippingCost(); - $priceGross = round($priceGross, 2); + $priceGross = round($priceGross, 3); $item = [ 'Description' => 'Shipping costs', diff --git a/Component/Service/PaymentProcessor.php b/Component/Service/PaymentProcessor.php index baa17968..425984a8 100644 --- a/Component/Service/PaymentProcessor.php +++ b/Component/Service/PaymentProcessor.php @@ -99,6 +99,8 @@ public function setPaymentStatusPaid($order) /** * @param $transactionId * @param \Shopware\Models\Order\Order $order + * @param bool $backend + * @throws \Exception */ public function sendPaymentConfirm($transactionId, $order, $backend = false) { diff --git a/Controller/frontend/RpayRatepay.php b/Controller/frontend/RpayRatepay.php index 801dfdec..15dfc07e 100755 --- a/Controller/frontend/RpayRatepay.php +++ b/Controller/frontend/RpayRatepay.php @@ -124,7 +124,7 @@ public function saveUserDataAction() /** @var Shopware\Models\Customer\Customer $userModel */ $userModel = $customerModel->findOneBy(['id' => Shopware()->Session()->sUserId]); - $userWrapped = new ShopwareCustomerWrapper($userModel); + $userWrapped = new ShopwareCustomerWrapper($userModel, Shopware()->Models()); if (isset($Parameter['checkoutBillingAddressId']) && !is_null($Parameter['checkoutBillingAddressId'])) { // From Shopware 5.2 current billing address is sent by parameter $addressModel = Shopware()->Models()->getRepository('Shopware\Models\Customer\Address'); diff --git a/Views/responsive/frontend/installment/php/PiRatepayRateCalc.php b/Views/responsive/frontend/installment/php/PiRatepayRateCalc.php index 1f07ea34..4628a024 100755 --- a/Views/responsive/frontend/installment/php/PiRatepayRateCalc.php +++ b/Views/responsive/frontend/installment/php/PiRatepayRateCalc.php @@ -111,8 +111,7 @@ public function createFormattedResult() $currency = '€'; $decimalSeperator = ','; $thousandSepeartor = '.'; - } - else { + } else { $currency = '€'; $decimalSeperator = '.'; $thousandSepeartor = ',';