Skip to content

Commit

Permalink
Replace split symbol from shipping method when paying with Apple Pay
Browse files Browse the repository at this point in the history
  • Loading branch information
michielgerritsen committed May 16, 2024
1 parent fe09b64 commit 44da8c4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Controller/ApplePay/PlaceOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 44da8c4

Please sign in to comment.