fix(billing): flag open chargebacks that leave the reversal window #147

Stängd
öppnade 2026-10-12 13:15:04 +00:00 av supernaut · 0 kommentarer
Ägare

chargebacksToReplay re-fetches open chargebacks younger than 180 days, the 100 newest (src/billing.ts:1892-1930). listChargebacks covers 14 days. The comment at :1890-1891 says a reversal past the window is seen through its webhook, but the payment webhook does not fire on a reversal (https://docs.mollie.com/reference/webhooks lists only "A chargeback is received on the payment").

Failing case: a chargeback cancels an unsent withdrawal refund. The dispute is reversed on day 200. The re-owed refund is never sent and nothing alerts.

Fix: correct the comment. When an open chargeback leaves the window, set a review note so the existing alert fires. Optionally subscribe to the chargeback.reversed event (https://docs.mollie.com/reference/chargebacks-api-webhooks).

`chargebacksToReplay` re-fetches open chargebacks younger than 180 days, the 100 newest (`src/billing.ts:1892-1930`). `listChargebacks` covers 14 days. The comment at `:1890-1891` says a reversal past the window is seen through its webhook, but the payment webhook does not fire on a reversal (https://docs.mollie.com/reference/webhooks lists only "A chargeback is received on the payment"). Failing case: a chargeback cancels an unsent withdrawal refund. The dispute is reversed on day 200. The re-owed refund is never sent and nothing alerts. Fix: correct the comment. When an open chargeback leaves the window, set a review note so the existing alert fires. Optionally subscribe to the `chargeback.reversed` event (https://docs.mollie.com/reference/chargebacks-api-webhooks).
supernaut lade till detta till projektet Bitborg Payment 2026-10-12 13:16:15 +00:00
Logga in för att delta i denna konversation.
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-payment#147
Ingen beskrivning angiven.