mollie / magento2

Mollie Payments for Magento 2
https://www.mollie.com
Other
98 stars 50 forks source link

Resolve delivery methods issue on Apple Pay #712

Closed james-windandkite closed 7 months ago

james-windandkite commented 8 months ago

This PR touches code in the following areas (Check what is applicable):

Frontend

Backend

Order Processing (Mollie communication)

Please describe the bug/feature/etc this PR contains: Resolve issue where changing shipping method in ApplePay does not correctly update the quote, resulting in orders failing.

Simplify entire code to remove unrequired saves/collects that are adding to the problem.

Don't set a default shipping method - by the nature of this method a shipping method is always being passed in.

When I change delivery method within Apple Pay popup, it should show a new total in the window including the new shipping amount. Currently the total doesn't update. Apple Pay then authorises the amount without the shipping method, then when it gets requested the total with shipping method it fails resulting in an error.