Skip to content

Please do not use custom events to submit the block-based Checkout form on button click #997

Open
@dennisnissle

Description

@dennisnissle

Mollie supports the new Block-based checkout provided by Woo. That's good :)

Unfortunately it seems the current implementation doesn't really respect the newly introduced Woo components to manage custom checkout events. Currently, what happens is after selecting a Mollie payment method within the checkout block a custom submit event is fired when hitting the submit button within the current form. This seems to be implemented with a custom event here. Instead please respect the Woo API and register events on onCheckoutValidation and/or onCheckoutSuccess as described by Woo here.

This custom event handling causes issues with plugins that adjust the block-based Checkout flow. In my case that is a multi-level checkout where the payment step is not the last step of the checkout flow - due to your custom event logic the form is submitted when hitting the button anyway.

Best,
Dennis

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions