From dd9628a6c63e83a2b0c6c70cce9cbcb6b5f67961 Mon Sep 17 00:00:00 2001 From: Vitalij Mik Date: Wed, 18 Oct 2023 08:58:40 +0200 Subject: [PATCH] MOL-1252: set the payment id and fix additional costs --- Controllers/Frontend/MollieApplePayDirect.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Controllers/Frontend/MollieApplePayDirect.php b/Controllers/Frontend/MollieApplePayDirect.php index 2989cf2a..5a95fbdb 100644 --- a/Controllers/Frontend/MollieApplePayDirect.php +++ b/Controllers/Frontend/MollieApplePayDirect.php @@ -166,6 +166,9 @@ public function addProductAction() $this->basket->sAddArticle($productNumber, $productQuantity); + // set the correct payment ID in order to add additional costs + $this->front->Request()->setPost('sPayment', $this->applePayPaymentMethod->getPaymentMethod()->getId()); + // add potential discounts or surcharges to prevent an amount mismatch // on patching the new amount after the confirmation. // only necessary if the customer directly checks out from product detail page