diff --git a/Model/Payment/AmountProcessor/CreditMemo.php b/Model/Payment/AmountProcessor/CreditMemo.php index 0cf22c4..a6fad4a 100644 --- a/Model/Payment/AmountProcessor/CreditMemo.php +++ b/Model/Payment/AmountProcessor/CreditMemo.php @@ -5,15 +5,17 @@ class CreditMemo { private \Afterpay\Afterpay\Model\Order\OrderItemProvider $orderItemProvider; - private \Magento\Weee\Block\Item\Price\Renderer $priceRenderer; + private \Afterpay\Afterpay\Model\Config $config; public function __construct( \Afterpay\Afterpay\Model\Order\OrderItemProvider $orderItemProvider, - \Magento\Weee\Block\Item\Price\Renderer $priceRenderer + \Magento\Weee\Block\Item\Price\Renderer $priceRenderer, + \Afterpay\Afterpay\Model\Config $config ) { $this->orderItemProvider = $orderItemProvider; $this->priceRenderer = $priceRenderer; + $this->config = $config; } public function process(\Magento\Sales\Model\Order\Payment $payment): array @@ -268,5 +270,4 @@ private function processWithGrandTotal( break; } } - } diff --git a/composer.json b/composer.json index 784327d..2088320 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "license": "Apache-2.0", "type": "magento2-module", "description": "Magento 2 Afterpay Payment Module", - "version": "5.4.0", + "version": "5.4.1", "require": { "php": ">=7.4.0", "magento/framework": "^103.0", diff --git a/etc/module.xml b/etc/module.xml index 139abcd..89e052a 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -1,7 +1,7 @@ - +