Open danielvonmitschke opened 1 year 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.
This issue is still present
Despite this bugfix (https://github.com/woocommerce/woocommerce-gateway-stripe/pull/2581) I can still see double refunds in rare cases. Above bugfix usually prevents this by comparing refund ids and aborting the web hook if the refund id equals an already existing refund. But I think what might happen in rare cases is the following:
An easy but maybe not very elegant fix could be a simple
sleep(5)
in the first line of theprocess_webhook_refund()
method. This would give a bit more time for the original api response to be handled.