From 99e6343a1afbcadadd8f20199e7ad0d17cf190d0 Mon Sep 17 00:00:00 2001 From: Florian Bender Date: Mon, 6 Nov 2023 10:13:58 +0100 Subject: [PATCH] Re-add checkout session --- Controller/ApplePay/ShippingMethods.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Controller/ApplePay/ShippingMethods.php b/Controller/ApplePay/ShippingMethods.php index 533722a39ad..b6928076875 100644 --- a/Controller/ApplePay/ShippingMethods.php +++ b/Controller/ApplePay/ShippingMethods.php @@ -6,6 +6,7 @@ namespace Mollie\Payment\Controller\ApplePay; +use Magento\Checkout\Model\Session as CheckoutSession; use Magento\Framework\App\Action\Action; use Magento\Framework\App\Action\Context; use Magento\Framework\Controller\ResultFactory; @@ -33,16 +34,23 @@ class ShippingMethods extends Action */ private $shippingMethodManagement; + /** + * @var CheckoutSession + */ + private $checkoutSession; + public function __construct( Context $context, CartRepositoryInterface $cartRepository, ShippingMethodManagementInterface $shippingMethodManagement, + CheckoutSession $checkoutSession, GuestCartRepositoryInterface $guestCartRepository ) { parent::__construct($context); $this->shippingMethodManagement = $shippingMethodManagement; $this->guestCartRepository = $guestCartRepository; $this->cartRepository = $cartRepository; + $this->checkoutSession = $checkoutSession; } public function execute()