feat(billing): revoke the mandate after a chargeback or withdrawal #145
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-payment#145
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "%!s()"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
We cancel Mollie subscriptions but never revoke the card mandate (
src/billing.ts:1278-1283,:1703-1708,:1812-1817, and the duplicate-checkout refund paths at:930-966). There is nocustomerMandatescall in the code.Mollie revokes a mandate only when it cancels the subscription itself. Revoke: https://docs.mollie.com/reference/revoke-mandate
Seen on staging:
sub_CYCMkRg9fSwas cancelled after a chargeback, and its mandatemdt_9k9DRPbbQmis stillvalid.Failing case: after a chargeback or a withdrawal, a chargeable mandate and card details stay at Mollie with no end date.
Fix: add
provider.revokeMethodand call it when a chargeback or withdrawal ends the subscription. Markpayment_methodinvalid. Leave cancel-at-period-end alone once customers are reused (see the customer-reuse issue).