Skip to content

Commit

Permalink
MOL-1252: set the payment id and fix additional costs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik authored and BlackScorp committed Oct 20, 2023
1 parent ffa458d commit dd9628a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Controllers/Frontend/MollieApplePayDirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dd9628a

Please sign in to comment.