Incompatible Extension Notice #8185
Comments
@tarhi-saad would you be kind to assist in resolving this? A couple of notes:
|
Hello @paymentplugins! 👋 Thank you for reporting this bug! 🙌 We created a PR that fixes and shows the correct incompatible payment gateways. It will be included in this week's release. We want to double-check with you regarding the Credit Card payment method (the default payment gateway). Is this one still incompatible with the Cart & Checkout Blocks? |
Hi @tarhi-saad, All of the payment methods provided in our Stripe plugin are compatible with WooCommerce Blocks, whether that be via the Express Checkout section or the payment methods section located toward the bottom of the block checkout. I would image that if a gateway is registered via the Kind Regards, |
Thank you, @paymentplugins, for the reply! 🙌 You are right! If a gateway is registered using I was testing the other payment gateways. All of them were recognized by our plugin. Then I simply disabled and re-enabled the Credit Card gateway, and it was fixed! This may be another bug that isn't related to the incompatibility notice. For now, I'm not sure if this is an issue from our end. It looks like the |
Hi @tarhi-saad Thanks for getting back to us. This may be something specific to the Block Editor because on the frontend checkout block, the credit card gateway always loads if it's enabled. We'll take a closer look at the Block Editor and try to replicate the behavior that you have reported. Kind Regards, |
Describe the bug
On the block editor page for the cart and checkout blocks, the following notice is shown for all express payment methods:
To reproduce
Install the Payment Plugins for Stripe WooCommerce plugin. Once the plugin is installed, navigate to the Checkout Block editor page. Click on the express payment methods block.
Steps to reproduce the behavior:
Expected behavior
The express payment methods for GPay and Apple Pay are supported so that notice should not show.
A clear and concise description of what you expected to happen.
Screenshots
Screenshot 1
WordPress (please complete the following information):
Additional context
The issue appears to be related to how the
incompatiblePaymentMethods
property located in the redux store'wc/store/payment'
is being set.In file
assets/js/data/payment/reducers.ts
and case statementACTION_TYPES.SET_AVAILABLE_PAYMENT_METHODS
, theincompatiblePaymentMethods
is set based on a filter. If the payment method ID isn't in the list of paymentMethods, it's added. The problem with that logic is theaction.paymentMethods
object consists only of the payment methods added via theregisterPaymentMethod
function.The payment methods added via the
registerExpressPaymentMethod
function are ignored and thus added to the list of incompatible payment methods.Here is the line of code
Kind Regards,
Payment Plugins
The text was updated successfully, but these errors were encountered: