-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Labels
Description
We disabled Apple Pay in the config, but this issue seems to persist. The Magewire component loaded with the ApplePay script is loaded when switching between shipping methods, and it's really slowing down our checkout:
<block name="checkout.payment.methods.after.mollie_methods_applepay"
as="mollie_methods_applepay_after"
template="Mollie_HyvaCheckout::component/payment/method/applepay_after.phtml">
<arguments>
<argument name="magewire" xsi:type="object">
Mollie\HyvaCheckout\Magewire\Checkout\Payment\Method\ApplePay
</argument>
</arguments>
</block>
When removing this block, the method switching is a lot faster. When disabling Apple Pay, this component should not be loaded. Also, I don't think the Magewire component should be triggered when switching shipping methods.