[X] The code is working on a plain Magento 2 installation.
[X] The code follows the PSR-2 code style.
[ ] 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
[X] 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:
When loading the payment methods on Safari or Apple Devices, when Apple Pay is enabled the following error may occur:
this.applePayPaymentToken() is not a function
Attached screenshot from Safari DevTools:
When this occurs it blocks all Mollie Payment methods from being rendered, including Credit Cards. This problem occurs due to this.applePayPaymentToken() not being defined as an observable in the component's defaults on load.
Scenario to test this code:
Open environment on a Safari or Apple device supporting Apple Pay
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:
When loading the payment methods on Safari or Apple Devices, when Apple Pay is enabled the following error may occur:
Attached screenshot from Safari DevTools:
When this occurs it blocks all Mollie Payment methods from being rendered, including Credit Cards. This problem occurs due to this.applePayPaymentToken() not being defined as an observable in the component's defaults on load.
Scenario to test this code: