godaddy-wordpress / wc-plugin-framework

The official SkyVerge WooCommerce plugin framework
Other
138 stars 42 forks source link

Handle support of Apple Pay and Google Pay in WC Cart/Checkout blocks #656

Closed unfulvio-godaddy closed 4 months ago

unfulvio-godaddy commented 5 months ago

This is a WIP PR for handling support for "express payment methods" such as Apple Pay and Google Pay in gateways that support the WC Cart and Checkout blocks.

We still need the legacy AP/GP handling in JS as the button may be displayed also in the product page which has nothing to do with the blocks for now.

When blocks are detected, we should shut off the legacy scripts so that the new react-based frontend can take over.

Closes #655

Note that individual plugins will need specific handling to update the buttons. The Gateway will remain responsible of legacy shortcode checkout styles.

Before Merging