woocommerce / woocommerce-gateway-stripe

The official Stripe Payment Gateway for WooCommerce
https://wordpress.org/plugins/woocommerce-gateway-stripe/
228 stars 201 forks source link

Fatal when extends WC_Gateway_Stripe #2938

Open salvoyith opened 6 months ago

salvoyith commented 6 months ago

Describe the bug I created a custom gateway that extends WC_Gateway_Stripe, and when enable the option New checkout experience and try to pay an order in the checkout block page, a fatal error is generated :

PHP Fatal error: Uncaught Error: Call to undefined method YITH_WC_Subscription_WC_Stripe::get_upe_enabled_at_checkout_payment_method_ids() in /Users/salvatorestrano/LocalSites/wc-blocks/app/public/wp-content/plugins/woocommerce-gateway-stripe/includes/abstracts/abstract-wc-stripe-payment-gateway.php:1289

The problem is that the class WC_Gateway_Stripe use the method _get_upe_enabled_at_checkout_payment_methodids but isn't not declarated here but in the class WC_Stripe_UPE_Payment_Gateway at line 391

Environment:

WordPress Version 6.4.3 WooCommerce Version 8.6.1 Stripe Plugin Version 7.9.3

github-actions[bot] commented 2 weeks ago

Hi, This issue has gone 150 days (5 months) without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest version, you can help the project by responding to confirm the problem and by providing any updated reproduction steps. Thanks for helping out.