From 44da8c49fbdd450b834cfc86779b40240f40acd7 Mon Sep 17 00:00:00 2001 From: Michiel Gerritsen Date: Thu, 16 May 2024 09:57:21 +0200 Subject: [PATCH] Replace split symbol from shipping method when paying with Apple Pay --- Controller/ApplePay/PlaceOrder.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Controller/ApplePay/PlaceOrder.php b/Controller/ApplePay/PlaceOrder.php index 0216edb7e50..6fa59109534 100644 --- a/Controller/ApplePay/PlaceOrder.php +++ b/Controller/ApplePay/PlaceOrder.php @@ -86,7 +86,13 @@ public function execute() $cart->setCustomerEmail($this->getRequest()->getParam('shippingAddress')['emailAddress']); - $shippingAddress->setShippingMethod($this->getRequest()->getParam('shippingMethod')['identifier']); + $shippingAddress->setShippingMethod( + str_replace( + '__SPLIT__', + '_', + $this->getRequest()->getParam('shippingMethod')['identifier'] + ) + ); $cart->setPaymentMethod('mollie_methods_applepay'); $cart->setCustomerIsGuest(true);