chargeback events are emitted but nothing handles them #16

Stängd
öppnade 2026-08-01 20:26:47 +00:00 av supernaut · 1 kommentar
Ägare

parseCallback now emits chargeback events (chb_1:open, chb_1:reversed), added alongside the refund events in #13 because chargebacks were being silently dropped for the identical reason. But there is nowhere for them to go: no chargeback table, no handler, no entitlement consequence.

So the events are produced and then discarded — which is better than not seeing them at all, but it is not handling a dispute.

What a chargeback actually means here

It is not just a failed payment. A chargeback is money already taken back by the cardholder's bank, usually with a fee, and it carries a decision the service has to make: does the person keep their entitlements while the dispute is open, and what happens on reversed (we won) versus a chargeback that stands (we lost)?

That is a policy question, not just a missing table. The existing subscription statuses do not express it: past_due deliberately keeps access alive during the provider's retry window, which is the right answer for a retryable failure and the wrong answer for a dispute.

Done when

  • A local record of a chargeback exists, keyed to its provider ref, so the same event arriving twice does not act twice — the same reasoning as the refund idempotency work.
  • A decision is recorded on entitlements while a dispute is open, and on each terminal outcome.
  • The Mollie chargeback vocabulary is checked against the real API rather than inferred from the two states currently emitted.

Not urgent: payments have not launched, so no chargeback can occur yet. It should be closed before the first live charge, since the first time this matters is the first time it happens.

`parseCallback` now emits chargeback events (`chb_1:open`, `chb_1:reversed`), added alongside the refund events in #13 because chargebacks were being silently dropped for the identical reason. But there is nowhere for them to go: **no `chargeback` table, no handler, no entitlement consequence.** So the events are produced and then discarded — which is better than not seeing them at all, but it is not handling a dispute. ## What a chargeback actually means here It is not just a failed payment. A chargeback is money already taken back by the cardholder's bank, usually with a fee, and it carries a decision the service has to make: does the person keep their entitlements while the dispute is open, and what happens on `reversed` (we won) versus a chargeback that stands (we lost)? That is a policy question, not just a missing table. The existing subscription statuses do not express it: `past_due` deliberately keeps access alive during the provider's retry window, which is the right answer for a retryable failure and the wrong answer for a dispute. ## Done when - A local record of a chargeback exists, keyed to its provider ref, so the same event arriving twice does not act twice — the same reasoning as the refund idempotency work. - A decision is recorded on entitlements while a dispute is open, and on each terminal outcome. - The Mollie chargeback vocabulary is checked against the real API rather than inferred from the two states currently emitted. Not urgent: payments have not launched, so no chargeback can occur yet. It should be closed before the first live charge, since the first time this matters is the first time it happens.
supernaut lade till detta till projektet Bitborg Payment 2026-08-01 20:27:04 +00:00
Upphovsperson
Ägare

Done by #75, released in v0.4.0. A chargeback is recorded per Mollie chargeback id (migration 0006), so a replay acts once. Entitlements: a chargeback on a live subscription revokes tier_pro and stops renewal; a full reversal restores it while the paid period runs; the edge cases are flagged for manual review. Credit notes stay with #63.

Done by #75, released in v0.4.0. A chargeback is recorded per Mollie chargeback id (migration 0006), so a replay acts once. Entitlements: a chargeback on a live subscription revokes `tier_pro` and stops renewal; a full reversal restores it while the paid period runs; the edge cases are flagged for manual review. Credit notes stay with #63.
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#16
Ingen beskrivning angiven.