woocommerce / woocommerce-gateway-stripe

The official Stripe Payment Gateway for WooCommerce
https://wordpress.org/plugins/woocommerce-gateway-stripe/
234 stars 206 forks source link

Double refunds still happening (triggered through web hook) #2724

Open danielvonmitschke opened 1 year ago

danielvonmitschke commented 1 year ago

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 the process_webhook_refund() method. This would give a bit more time for the original api response to be handled.

github-actions[bot] commented 1 month 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.

danielvonmitschke commented 1 month ago

This issue is still present