Skip to content

Apple Pay method slowing down checkout #60

@HyperC

Description

@HyperC

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:

Image

            <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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions