feat(checkout): show and record consent to automatic renewal #327
Inga granskare
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-web!327
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "feat/renewal-consent"
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?
Closes #309.
What
beginCheckoutrebuilds the sentence on the server with the samerenewalConsentText(lang, interval)the page renders, and sendsconsent { text, language, shownAt }tostartCheckout. One-time Swish sends none.consentShownAtis set at render time. The server refuses a missing value, one more than 60 s in the future or older than 24 h, with a newstalestatus ("reload the page").Copy
Tests
Sent text equals
renewalConsentTextfor sv and en, annual and monthly. No consent for Swish. Missing, garbage, future and too-old shown times are refused. 609 unit tests pass, build and e2e pass.Known limits: browsers without
:has()show the annual sentence after a switch to monthly.shownAtis client-supplied and only range-checked.