coopcycle / coopcycle-web

Logistics & marketplace platform. Only for worker-owned business.
https://coopcycle.org
Other
554 stars 127 forks source link

Double refund requests #4341

Open vladimir-8 opened 1 month ago

vladimir-8 commented 1 month ago

Describe the bug

Sometimes, when creating a refund, double refund requests are created (both on the platform and on Stripe)

Additional context

https://coopcycle.slack.com/archives/C4UT4DGQ3/p1716060037373999

Look at the timestamps (1s interval between reimbursement requests)

Problematic orders:

112048 on 10/07/2023 (lcr) 140049 on 2024-03-04 (lcr) 147745 on 2024-04-13 (lcr)

vladimir-8 commented 1 month ago

Could somehow caused by this loop? https://github.com/coopcycle/coopcycle-web/blob/master/src/Controller/AdminController.php#L326