status: expose the renewal payment method and last four digits #102
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#102
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?
Goal
Show the customer which payment method their subscription renews on, so a removed or replaced card is noticed before a renewal fails.
Design
subscriptionStatusreturns the stored payment method label and the last four digits when the provider gives them (card brand, Apple Pay, Google Pay).Done when
Portal side: a bitborg-web issue to show it on the account page.
Done on main. The status contract carries
nextCharge.method(card or applepay) andnextCharge.last4, pluscard: {brand, last4}, which stays set while past_due (contract/src/index.ts).src/billing.tsfills both from the stored payment method, andsrc/provider/mollie.tscaptures the brand, last four and Apple Pay wallet. Tests cover card, Apple Pay and missing details. Mollie reports Google Pay as a card payment, so it shows as the card brand by design.