feat(billing): revoke the mandate after a chargeback or withdrawal #145

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

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 no customerMandates call 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_CYCMkRg9fS was cancelled after a chargeback, and its mandate mdt_9k9DRPbbQm is still valid.

Failing case: after a chargeback or a withdrawal, a chargeable mandate and card details stay at Mollie with no end date.

Fix: add provider.revokeMethod and call it when a chargeback or withdrawal ends the subscription. Mark payment_method invalid. Leave cancel-at-period-end alone once customers are reused (see the customer-reuse issue).

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 no `customerMandates` call 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_CYCMkRg9fS` was cancelled after a chargeback, and its mandate `mdt_9k9DRPbbQm` is still `valid`. Failing case: after a chargeback or a withdrawal, a chargeable mandate and card details stay at Mollie with no end date. Fix: add `provider.revokeMethod` and call it when a chargeback or withdrawal ends the subscription. Mark `payment_method` invalid. Leave cancel-at-period-end alone once customers are reused (see the customer-reuse issue).
supernaut lade till detta till projektet Bitborg Payment 2026-10-12 13:16:14 +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#145
Ingen beskrivning angiven.