A couple of errors suggesting bugs
-
Hi
I use WooCommerce Subscriptions in conjunction with your excellent Stripe plugin. I had two errors occur following a successful automatic retry of a failed payment on a subscription renewal order, which appear to indicate bugs in your plugin.
This was in the PHP error log:
[01-Jun-2020 12:14:55 UTC] PHP Fatal error: Uncaught Error: Call to undefined function wc_add_notice() in /wp-content/plugins/woo-stripe-payment/includes/abstract/abstract-wc-payment-gateway-stripe.php:998 Stack trace: #0 /wp-includes/class-wp-hook.php(287): WC_Payment_Gateway_Stripe->subscriptions_pre_update_payment_method(Object(WC_Subscription), 'stripe_cc', 'stripe_cc') #1 /wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #2 /wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 /wp-content/plugins/woocommerce-subscriptions/includes/class-wc-subscriptions-change-payment-gateway.php(499): do_action('woocommerce_sub...', Object(WC_Subscription), 'stripe_cc', 'stripe_cc') #4 /wp-content/plugins/woocommerce-subscriptions/includes/class-wc-subscriptions-change-payment-gateway.php(629): WC_Subscriptions_Change_Payment_Gateway::update_payment_met in /wp-content/plugins/woo-stripe-payment/includes/abstract/abstract-wc-payment-gateway-stripe.php on line 998 [01-Jun-2020 15:15:21 UTC] Stripe Notice: Undefined property of Stripe\StripeObject instance: risk_score
And this was added as a note to the Subscription:
Attemp to save payment method failed. Reason: Unrecognized request URL (GET: /v1/payment_methods/). If you are trying to list objects, remove the trailing slash. If you are trying to retrieve an object, make sure you passed a valid (non-empty) identifier in your code. Please see https://stripe.com/docs or we can help at https://support.stripe.com/.
Versions in use:
WooCommerce 3.9.2
WooCommerce Subscriptions 3.0.4
Stripe for WooCommerce 3.1.2 (I’m aware that 3.1.3 is out but don’t see anything relevant in the changelog)Thanks
- The topic ‘A couple of errors suggesting bugs’ is closed to new replies.