feat(checkout): pass locale and cancelUrl, expose the latest charge status #100
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-payment!100
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "feat/88-locale-cancel-status"
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?
The portal can now tell the checkout outcome apart and send the customer to Mollie in their language.
startCheckoutinput:locale?: "sv_SE" | "en_GB"andcancelUrl?.cancelUrlmust be https with the same scheme and host asreturnUrl, so it cannot become an open redirect. Both pass to Molliepayments.createon the auto and the one-time path, and are omitted when not given.subscriptionStatusaddslatestCharge: { status: "pending" | "paid" | "failed" | "canceled" | "expired"; at } | nullfor the newest charge.charge.failure_reason(enumcharge_failure, migration0008). A null reason reads asfailed. Money logic is unchanged.status: "incomplete"withlatestChargeset, where it returned null before.currentPeriodEnd,paidUntilandwithdrawalDeadlineare null in that state, andcurrentPeriodEndis nullable in the contract. An open or refunded first payment still returns null.Contract 0.7.0, service 0.6.0. Tests: 366 passed with Postgres.
Closes #88.