feat(checkout): show the payment outcome on return #300
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!300
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "feat/295-checkout-outcome"
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?
After checkout the account page showed one notice for every outcome. It now shows the actual result, read from the billing service, never from the redirect.
/api/checkoutsendslocale(sv_SEoren_GB) andcancelUrl=<account URL>?checkout=cancelled#checkouton the same origin asreturnUrl.checkoutOutcomereadslatestChargefromsubscriptionStatus: paid, pending, failed, expired or cancelled, each with its own message. Failed, expired and cancelled offer "Try again". The query slot only matters when the service reports no charge.incomplete, nullablecurrentPeriodEnd, optionallatestCharge,renewal,paidUntil. Missing fields read as null, so an older service still works.Tests: 523 passed. New cases cover the request body, each outcome, charge over slot, old-service compatibility and
incomplete.Needs bitborg-payment 0.6.0 on a host before the outcome messages show; with an older service every return shows the previous generic notice. Version 1.20.0.
Closes #295.