bv2123
Forum Replies Created
-
I did it. The issue is not with WooCommerce Subscriptions, but with the Gateway.
Also, the answer I had from the Support is not fit to the problem, I was asked to correct the issue manually. However, we have more than 10k subscriptions.
I need to know the way to ask the database to be updated to PaymentMethod.
best,
@designguideat Yes, you have to do this with every subscription which is failing. After updating the plugins and the WP core, all the new subscriptions are now fine and the Stripe IDs are populated correctly.
Hello @designguideat !
Thanks for your answer.
I had an answer from the WooCommerce.com support, and now it works, but I had to repopulate all the Stripe IDs in Subscription > Billing, for each unsuccessful subscription.
Here is the answer I had :Thanks for the login credentials, I was able to log in successfully. I understand you are getting the following error: The error is marked in Stripe as : "payment_intent_unexpected_state You cannot confirm this PaymentIntent because it's missing a payment method. You can either update the PaymentIntent with a payment method and then confirm it again, or confirm it again directly with a payment method." The error message found in the logs is: 2022-01-29T00:27:48+00:00 DEBUG ====Stripe Version: 6.1.0==== ====Start Log==== Error: stdClass Object ( [error] => stdClass Object ( [code] => payment_intent_unexpected_state [doc_url] => https://stripe.com/docs/error-codes/payment-intent-unexpected-state [message] => You cannot confirm this PaymentIntent because it's missing a payment method. You can either update the PaymentIntent with a payment method and then confirm it again, or confirm it again directly with a payment method. [type] => invalid_request_error ) ) ====End Log==== In this case, the 'missing payment method' referenced there is related to the Stripe Customer ID and Stripe Source ID fields being blank. I have been looking into logs on a specific subscription (which is Subscription #1256) subscription payment for order #2096: XX. I see this specific subscription started on December 28, 2021. The same problem happened according to the Stripe logs and a fatal error happened on December 31st too: 2022-01-28T10:18:11+00:00 DEBUG ====Stripe Version: 6.0.0==== ====Start Log==== Error: stdClass Object ( [error] => stdClass Object ( [code] => payment_intent_unexpected_state [doc_url] => https://stripe.com/docs/error-codes/payment-intent-unexpected-state [message] => You cannot confirm this PaymentIntent because it's missing a payment method. You can either update the PaymentIntent with a payment method and then confirm it again, or confirm it again directly with a payment method. [type] => invalid_request_error ) ) ====End Log==== Fatal error related to Stripe (the same error happened on January 26, 2022): I'm not sure what may be causing this fatal error, but once you confirm the solution below, we can dig further into the cause of the fatal error. 2022-01-26T09:44:51+00:00 CRITICAL Uncaught Error: Call to a member function update_status() on null in /home/auip6979/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-intent-controller.php:664 Stack trace: #0 /home/auip6979/public_html/wp-includes/class-wp-hook.php(307): WC_Stripe_Intent_Controller->update_failed_order_ajax('') #1 /home/auip6979/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #2 /home/auip6979/public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #3 /home/auip6979/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(90): do_action('wc_ajax_wc_stri...') #4 /home/auip6979/public_html/wp-includes/class-wp-hook.php(307): WC_AJAX::do_wc_ajax('') #5 /home/auip6979/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(false, Array) #6 /home/auip6979/public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #7 /home/auip6979/public_html/wp-includes/template-loader.php(13): do_action('template_redire...') #8 /hom dans /home/auip6979/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-intent-controller.php à la ligne 664 To resolve the issue with Subscription1256, log into your Stripe.com dashboard and click on the "Customers" section at the top and find the record belonging to XX XX. The Stripe Customer ID is shown in the sidebar and the Stripe Source ID is shown in the "Payment Methods" section, seen in this example from my test account. Link to screenshot: https://d.pr/i/25G1im Once you add that info to the subscription order, change the Subscription Status from "On Hold" to "Active" and then attempt to process the renewal manually, as described in this section of the docs: https://woocommerce.com/document/subscriptions/add-or-modify-a-subscription/#section-15 That should create a new Renewal Order and attempt to process the payment for that subscription, using the newly-added Customer and Source ID, resolving the issue for that subscriber going forward.--
Once I repopulated the Stripe Ids, I manually launched a new renewal order from the sidebar menu, and then "Manually collect the renewal", and it worked !
Best regards,
Thank you, however I can’t contact you this way. WooCommerce.com is asking me to confirm my e-mail address, and I do, but it still asks me.