feat(signup): move the paid choice from sign-up to the account page #365
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!365
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "feat/signup-paid-on-account"
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 #363
Sign-up now creates a participant or trial account only. Paying is an upgrade from the account page.
paidaccount type from sign-up: radio, country field,?status=paidnotice, welcome page text and the API branch. A submittedaccountType=paidgives a participant account.beginCheckout()refuses non-Swedish residents (checkoutSupports()) with a newcountrystatus, before anything is stored or sent to billing, and records the country on thesignupsrow. A paid account renewing is not asked.offeredAccountTypes(),requiresCountry()andisEligible(). Sign-up offers trial (whileTRIAL_OPEN) and participant.signups.country_codeandregionare now filled at checkout.Not in this PR: the terms and privacy pages still say the country is given at sign-up. Changing them needs a terms version bump and is handled separately.
Tests: new test that sign-up ignores
accountType=paid; new checkout tests for the country check; removed the paid sign-up tests. Pre-push ran lint, type-check, vitest, build and e2e.