-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add block-based checkout support #109
base: master
Are you sure you want to change the base?
Conversation
@rramsden |
@rramsden I wonder if we don't need to update multipay fields.js as well. Something like
|
As of WooCommerce 8.3, Cart and Checkout Blocks have become enabled by default. I've been following this guide to try to add support for WooCommerce Checkout Blocks. A lot of progress has been made, but we are still facing issues getting our
KomojuFields
elements (from https://multipay.komoju.com/fields.js) to load, which means we don't have our iframes for payment methods like credit card and konbini. In previous versions, this was handled by WC_Gateway_Komoju_Single_Slug::payment_fields, but this is no longer working. There are probably various options to solve this, such as passing the html to the frontend or passing the required data to the frontend and constructing the html there (it can be passed in WC_Gateway_Komoju_Blocks::get_payment_method_data). Additionally, I suspect methods such as WC_Gateway_Komoju_Single_Slug::validate_fields, WC_Gateway_Komoju_Single_Slug::validate_fields, etc might also need to be reworked in order to be compatible with Block Checkout.Useful simple example:
https://sevengits.com/woocommerce-checkout-blocks/
Stripe's implementation:
https://github.com/woocommerce/woocommerce-gateway-stripe/pull/1467/files
Other references:
https://developer.woo.com/2022/07/07/exposing-payment-options-in-the-checkout-block/