billing: keep chargeback evidence for every payment #101

Stängd
öppnade 2026-10-06 11:20:35 +00:00 av supernaut · 1 kommentar
Ägare

Goal

Keep, per payment, the evidence needed to answer a card chargeback. The relevant reason is "cancelled recurring transaction" (Visa 13.2), where the customer says a renewal was charged after they cancelled or without consent.

What to record

  • The consent shown at checkout: text version or hash, timestamp, and the page language.
  • The renewal choice (auto or none) and interval.
  • The first payment's 3-D Secure result as reported by the provider.
  • Each cancellation: when it was requested and when it takes effect.
  • Each renewal charge: date, amount and the mandate it used.

Also

Document in the readme that renewals are merchant-initiated and run without 3-D Secure, so they carry no liability shift. Only the first payment is authenticated. This is an accepted risk.

Done when

  • A chargeback on a renewal can be answered from stored data alone: consent, cancellation state and charge history.
  • Unit tests cover what is recorded at checkout, cancellation and renewal.
## Goal Keep, per payment, the evidence needed to answer a card chargeback. The relevant reason is "cancelled recurring transaction" (Visa 13.2), where the customer says a renewal was charged after they cancelled or without consent. ## What to record - The consent shown at checkout: text version or hash, timestamp, and the page language. - The renewal choice (`auto` or `none`) and interval. - The first payment's 3-D Secure result as reported by the provider. - Each cancellation: when it was requested and when it takes effect. - Each renewal charge: date, amount and the mandate it used. ## Also Document in the readme that renewals are merchant-initiated and run without 3-D Secure, so they carry no liability shift. Only the first payment is authenticated. This is an accepted risk. ## Done when - A chargeback on a renewal can be answered from stored data alone: consent, cancellation state and charge history. - Unit tests cover what is recorded at checkout, cancellation and renewal.
supernaut lade till detta till projektet Bitborg Payment 2026-10-06 11:24:46 +00:00
Upphovsperson
Ägare

Done in #107. chargebackEvidence in src/evidence.ts builds the answer to a chargeback from stored data alone: the consent text hash, text, shown-at time and language from the first checkout charge, the renewal choice and interval, the first payment with its mandate and 3-D Secure result as Mollie reports it (card_security), each cancellation with its requested and effective time, and every paid renewal charge with date, amount and mandate. The snapshot is stored on the chargeback row when the chargeback is first recorded. The README states that renewals are merchant-initiated, run without 3-D Secure and carry no liability shift, as an accepted risk. src/billing.test.ts covers what is recorded at checkout, cancellation and renewal. Closing.

Done in #107. `chargebackEvidence` in `src/evidence.ts` builds the answer to a chargeback from stored data alone: the consent text hash, text, shown-at time and language from the first checkout charge, the renewal choice and interval, the first payment with its mandate and 3-D Secure result as Mollie reports it (`card_security`), each cancellation with its requested and effective time, and every paid renewal charge with date, amount and mandate. The snapshot is stored on the `chargeback` row when the chargeback is first recorded. The README states that renewals are merchant-initiated, run without 3-D Secure and carry no liability shift, as an accepted risk. `src/billing.test.ts` covers what is recorded at checkout, cancellation and renewal. Closing.
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#101
Ingen beskrivning angiven.