[x] The code is working on a plain Magento 2 installation.
[x] The code follows the PSR-2 code style.
[x] When an exception or error is logged the message is accompanied with some context, eg: Error when trying to get the payment status:
[] Contains tests for the changed/added code (great if so but not required).
[x] I have added a scenario to test my changes.
This PR touches code in the following areas (Check what is applicable):
Frontend
[ ] Shopping cart
[ ] Checkout
[ ] Totals
[x] Payment methods
Backend
[ ] Configuration
[ ] Order grid
[ ] Order view
[ ] Invoice view
[ ] Credit memo view
[ ] Shipment view
[ ] Email sending
Order Processing (Mollie communication)
[ ] Creating the order
[ ] Invoicing the order
[ ] Shipping the order
[ ] Refunding (credit memo) the order
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.
Error when trying to get the payment status:
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.