Hey Ben,
Does this only happen with Stripe, or have you tested this with other gateways as well? Are multiple orders generated or just a single one?
It has only happened with Stripe so far. And it does not happen for all Stripe orders. Only one order is created but multiple New order emails are sent out.
Hi @ben72,
Do you have any caching enabled for your store? CAn you ensure that there is no caching for the cart and checkout pages? often times caching can cause certain events like mails to getting repeated. Also, who are you hosting with?
Cheers!
Thank you @praveen,
I have WP Rocket and it says in the documentation: “As of version 2.4 of WP Rocket, the cart, checkout and ‘my account’ pages are auto-excluded from the cache for WooCommerce, Easy Digital Download, iThemes Exchange, Jigoshop, and WP-Shop.”
This is the kind of account I’m on, https://translate.google.com/translate?sl=sv&tl=en&js=y&prev=_t&hl=sv&ie=UTF-8&u=https%3A%2F%2Fwww.oderland.se%2Fwebbhotell%2Fpremium%2F&edit-text=&act=url
It never happened before I updated to 4.0.1. I’m on 4.0.3 now. I’ll let you know if this happens again.
Kind regards.
Hi @ben72,
Let me know if you are still seeing the double new order emails issue, most likely it is some server/caching issue,
Cheers!
Hello @praveen,
I haven’t seen that issue again since updating to the latest dot version of the plugin. Another issue now though is that for all orders using Stripe I get a failed New Order email to the shop admin, sometimes two emails. It’s followed by a successful New order email.
I’ve just updated the Stripe API from 2015-10-16 to the latest (2017-12-14). Maybe that will make a difference.
Thanks!
The error seems to be a 400 invalid_request_error, “The source you provided is not in a chargeable state.”
For all purchases there seems to be:
1. 200 OK POST /v1/sources
2. 200 OK POST /v1/sources
3. 200 OK POST /v1/charges
4. 400 ERR POST /v1/charges
And this results in a failed New Order email and then a successful New Order email from Woocommerce.
Thanks!
@spraveenitpro The issue seems to be resolved after updating to plugin version 4.0.4! 🙂
Maybe it was fixed by this in the changelong, “Fix – Possible fix for duplicate charges due to webhook and redirect handler firing at the same time by adding delay to the webhook process.”
Now I’ve updated to 4.0.5 and crossing my fingers! 🙂
@spraveenitpro now on 4.0.5 I’m seeing double New order and Order confirmations to the customer. :/