A short async function refunds money through Stripe with three retries, then marks the refund done in the database. Find every way it can refund twice, mark a failed refund as done, or swallow the wrong errors.
A short async function refunds money through Stripe with three retries, then marks the refund done in the database. Find every way it can refund twice, mark a failed refund as done, or swallow the wrong errors.
The discussion opens with the full question.