-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Potential duplicate webhook actions #2331
Comments
The user from zd-4902272 mentioned that they have the same plugins set up on a different server and they don't see the duplicate notes problem. I've asked for some additional information about the configuration and if they've reached out to their server at all (on the problem site we are currently troubleshooting) to see if it's a server related issue. |
Another update from the same user. I had suggested (as a work around for their downloadable content issue) turning on the function to access download upon purchase, but they corrected what they said before about the payment statuses: "Seems the status is not in "Processing" after the Stripe payment is finished. It is in "Waiting for payment"." That means second status is triggering a push back to "pending payment" even though the payment has already been made. They also mentioned this about their other server's settings: For the other server, we are using the same version of WooCommerce Plugin and Stripe gateway plugin. Seems everything work normally on the server. They have included the System status in their ticket. Let me know if you want me to add it here. |
I took a look at 4902272-zen and noticed that there are quite a fatal errors occurring around when this duplicate note/status change is happening:
I suggested that they address that fatal error and see if that resolves the issue. |
Another possible case in 4940814-zen. |
I was working again on 4940814-zen and they don't have any fatal error logs available as in @shaunkuschel's case. Just as an FYI. They enabled Stripe logging once they noticed this happening, but I don't believe it's happened again since April 8th for their site. |
Another case here: 4965600-zen The merchant commented it's not happening with ALL orders (but with most of them). |
4940814-zen reports that the issue persists, but they recently shared that:
|
Just to clarify, this is not a case of duplicate webhook actions. Instead, it's the following:
That's why the merchant that @aheckler brought up had success in solving the issue when they disabled UPE: they removed pathway 2 (i.e. 1. The webhook action abstract-wc-stripe-payment-gateway.php:539, WC_Stripe_Payment_Gateway->process_response()
class-wc-stripe-webhook-handler.php:854, WC_Stripe_Webhook_Handler->process_payment_intent_success()
class-wc-stripe-webhook-handler.php:990, WC_Stripe_Webhook_Handler->process_webhook()
class-wc-stripe-webhook-handler.php:70, WC_Stripe_Webhook_Handler->check_for_webhook() 2. abstract-wc-stripe-payment-gateway.php:539, WC_Stripe_Payment_Gateway->process_response()
class-wc-stripe-upe-payment-gateway.php:923, WC_Stripe_UPE_Payment_Gateway->process_order_for_confirmed_intent()
class-wc-stripe-upe-payment-gateway.php:853, WC_Stripe_UPE_Payment_Gateway->process_upe_redirect_payment()
class-wc-stripe-upe-payment-gateway.php:822, WC_Stripe_UPE_Payment_Gateway->maybe_process_upe_redirect()
class-wc-stripe-intent-controller.php:680, WC_Stripe_Intent_Controller->maybe_process_upe_redirect() These two pathways will need to be debugged and either the "Stripe charge complete" note needs to get removed from one or it may be a bit more involved and both of the pathways will need to be reevaluated. |
5175398-zen |
5202573-zen The particular customer within this support ticket is finding that due to the duplication stock quantities are being reduced twice. |
I am actually experiencing the exact same issue. It happened to me exactly after I deleted a webhook and configured a new one. I get duplicate order notes, duplicate emails, and stock being reduced twice. The issue does not occour when a customer pays via Apple Pay. I have the new checkout experience enabled. I can share the logs if needed. Are there any solutions other than switching back to the old checkout? |
Hi there! |
It was reported in 5334483-zen and 5339700-zen too. |
Have another report of this here: 36018895-hc and follow up here: 5202573-zen Got creds to confirm relation to this bug--but I'm 99% sure it is connected base on the information the user provided. |
5360179-zen |
I am having this issue as well on 2 websites Have just tried turning off new check out see if that resolves the issue. |
5453836-zen. User is facing duplicate stock reduction on top of duplicate order notes just as @stuartduff mentioned. |
Working on 5468298-zen where we have duplicate charge complete order notes plus duplicate points being awarded via WooCommerce Points and Rewards. Trying to confirm if it's related to this or not. |
Adding to @dreamtooloud comments relating to 5468298-zen |
I have spent some time looking into this seems 99% sure its some thing to do with the Try the new checkout experience (early access) i have 4 websites 2 which had this activated had the issue, since turning off haven't seemed to have the problem. |
We mentioned to the user that we didn't think there duplicate notes/inventory reduction was related to this issue because they don't have UPE enabled but after looking through all the notes here and the other tickets I do want to add this to the list, because everything else about it is similar: 5539401-zen. Asking them to conduct a conflict test now to confirm the above. |
5612750-zen |
Merchant from 5612750-zen deep dived into the issue and shared the below details:
|
+1 at 5628841-zd-woothemes In this case, the customer also noticed the order received email was being sent twice |
This merchant is also experiencing duplicate emails being sent: 4940814-zen |
Also reported on 8549523-zen |
8461577-zen matches the behavior pattern of this bug as well. |
8554787-zen |
Also reported here - 8550782-zen |
Another report here - 8494205-zen |
8514891-zen |
This did NOT resolve my issue. It broke the store, and we immediately had zero sales, after dozens of sales that same day. Once we lost a big number of sales, we had to switch back to turning off Legacy Checkout. Who is working on this? Why is it not being solved?? It's been over two years!?!? |
8572882-zen |
Some feedback from 8504106-zen.
I hope this is helpful! |
Another report here 8569907-zen |
Reported in 8583108-zen |
Hey everyone! 👋 Update over here. Would you please give the latest version a go? It's 8.6.1. It was released twelve hours ago and it includes a fix for this issue. Closing this GH issue as it should have been fixed by #3331. Please let us know if you notice anything off after the update. Thanks again for your patience and the details you provided. We'll be around. |
Hello I am still getting duplicate order emails being generated. How can I check if this is the same bug? EDIT I just noticed I appear to be using the Stripe legacy checkout and I have no idea why. I will disable that and see what happens. |
Edit: I see that this was actively being monitored in an Epic (#3327) and multiple other issues, but that was closed, too. This issue should not be closed as I am still experiencing this problem. I previously commented in this thread here. I see there is a new issue that is addressing the same problem as well. The WooCommerce Stripe plugin is causing our customers to receive duplicate customer emails and causing WooCommerce to place duplicate order notes on order admin. We are running WooCommerce Stripe Gateway version 8.8.0, which we updated to after the changelog indicated this issue was fixed. Here are some recent screenshots of the symptoms: |
I have the same issue as well with WooCommerce using latest stripe plugin 8.8.1 |
For anyone having this problem, we've had an issue with duplicate emails on and off for over a year now (Woocommerce / Woocommerce Subscriptions). What solved it, was disabling Object Cache on Cloudways. Hopefully this helps someone. |
Having the same issue double notes on orders creating duplicate emails. Woo Support suggested switching to legacy mode which I have but it has had no effect still experiencing the issue. Have disabled object cache as a test but that hasnt made a difference either. Edit: Updating to 8.8.2 fixed the issue |
Hi all, last week we released Stripe 8.8.2 which included a few key fixes to address the issues of duplicate order notes and emails on orders and subscription renewal orders:
For extra context, we found that stores with object caching enabled were having the webhook sent by Stripe processed concurrently with the original payment request. This resulted in us calling Please update to the latest Stripe version and let me know if you're still noticing the issue. |
Looks good since update. |
Describe the bug
This issue already exists within WooCommerce Payments, could the same thing also be happening in the Stripe extension itself?
I worked on a ticket this morning( 4902272-zen ) where they have said most of their recent Stripe orders have these duplicate order notes from Stripe regarding the charge. For example they see this twice or more on their orders.
To Reproduce
I am not finding a specific way to replicate this as it doesn't happen on my local site in test mode, but it's happening just about every order on this customers site.
Expected behavior
No duplicate order notes. The customer thought customers were being charged twice, it doesn't seem that way since the charge IDs are the same in any duplicated or triplicated order notes.
Screenshots
Image link: https://d.pr/i/zDbDvh
The text was updated successfully, but these errors were encountered: