checkout: restrict the first payment to mandate-creating methods #82
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#82
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?
Problem
The first payment sets
sequenceType: firstbut nomethod(src/provider/mollie.ts:309-319). Mollie only creates a mandate for cards (including Apple Pay and Google Pay), PayPal and SEPA direct debit. If the website profile has any other method enabled, a customer can pay with it.The payment is then
paidwith no mandate.paymentMethodFromreturnsmandateId: ""(mollie.ts:85) andcreateSubscriptionsends that empty mandate to Mollie. The activation step then fails, so the customer has paid but gets notier_pro, and reconciliation keeps replaying it.Mollie docs
methodcan "limit customer choices" (https://docs.mollie.com/reference/create-payment).Fix
method: ["creditcard"]on the first payment (or the exact recurring-capable set we decide to offer).completeCheckout, treat a paid payment with nomandateIdas a failed checkout: refund it and log it. Never callcreateSubscriptionwith an empty mandate.Done when
Found in the Mollie docs audit of 2026-10-05. Go-live blocker.
Profile methods as of 2026-10-05: Swish and Pay by Bank are active. Cards, Apple Pay and Google Pay are being validated.
Per https://docs.mollie.com/docs/recurring-payments:
creditcardmandate. This is the only mandate type usable for SEK renewals.directdebitmandate. SEPA Direct Debit charges EUR only, so it cannot carry SEK renewals. It also needs SEPA Direct Debit enabled on the profile.So the allowed set for the first payment is cards plus Apple Pay and Google Pay. Confirm the exact
methodvalues against the create-payment reference:creditcard,applepay, and whether Google Pay has its own value or runs insidecreditcard.Until this lands and cards are active, a checkout shows only Swish and Pay by Bank. Every paid checkout would then hit the no-mandate path. Prod is safe while
billing_payments_enabledis false. The staging test run needs this issue fixed first.