staging: run the payment test checklist (Tracks B0, B1, B2) #579
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-infra#579
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?
Run "Test checklist" steps 1 to 12 in
docs/runbook.mdon staging. Tick each run.Steps
tier_procleanup (payment#131) checked.untouched-test,sub_Q7CrcoDqkv, next charge 2026-11-13. Keep staging up on 2026-11-13, check on or after 2026-11-14, then tick step 8.Closes web#259 and payment#51 when green. Evidence for infra#496. Full pass needs the Keycloak stack from bitborg/bitborg-docs#5.
Track B0 card checkout ran on staging on 2026-10-11, after Mollie activated cards.
seed-trial: card, monthly, auto-renew, paid; subscriptionactive, quotapaid.first-signin-test: Swish one-time year paid, a renewal paid, and a failed payment that endedfailedwith no stuckpending(payment#129 fix).trial-pay-test: card paid on billing 0.10.1, Keycloak ended withtier_proandforgejo_usersonly (payment#131). The return page updated without a reload and showed a spinner while waiting. Google Pay needs no code change: it runs insidecreditcard. Not run yet: B1 and B2 (refund, chargeback, renewal charge).Track B1/B2 staging run, 2026-10-11 (test mode).
refund.refunded). No credit note, as documented. Gap: a dashboard refund leaves the period andtier_prounchanged (filed separately).charge.period, so the renewal hitcharge_subscription_id_period_uniqueuntil fixed. It also setsstartDateone day before the next charge billing reports. Runbook fix filed separately.Open with Mollie: forcing a failed renewal in test mode, the live retry schedule, chargeback reversal in test mode.
Step 4 rerun, 2026-10-11 19:08 to 19:09 UTC (test mode). New user, monthly card checkout from the account page, then withdrawal from the account page.
active,tier_progranted, first charge succeeded.tier_prorevoked. Mollie subscription cancelled at 19:09:05. Pro-rata refund 150.00 SEK (full charge, about one minute used) created,pendingat Mollie.Also verified on this run: sign-up and sign-in through the Keycloak host-only address (#677); the session records the real client IP.
Step 8 started 2026-10-12. Account
untouched-test, monthly card checkout, auto-renew, not time-shifted.sub_Q7CrcoDqkv, created 2026-10-12 18:19 UTC,nextPaymentDate2026-11-13.Keep staging up on 2026-11-13. Check then that the renewal lands as
paidand the period moves to end before 2026-12-13.Runbook test step 7 (failed renewal) is dropped from this run. The failure path stays covered by unit tests in bitborg-payment.
Why test mode cannot run it:
paidwithin a second of creation (tr_WsqidBhgJZf5QuiBfC2YJ: created 17:35:22, paid 17:35:23 UTC on 2026-10-11).changePaymentStatethen only offers refund and chargeback.failureReasonafter a manual "failed" in the test checkout, and testing supports EUR only (https://docs.mollie.com/reference/testing). A recurring payment has no checkout.Parked until the renewal. Check on or after 2026-11-14:
sub_Q7CrcoDqkv(customercst_TuJeBej69v) has a second payment dated 2026-11-13, statuspaid, and anextPaymentDateof 2026-12-13.untouched-testmoved itsperiod_endto 2026-12-12 23:59:59.999 Amsterdam time, with one new charge and invoice.Then tick step 8.
Step 8, checked 2026-11-15 (Mollie test mode, read only).
Mollie side: pass.
sub_Q7CrcoDqkv:active,nextPaymentDate2026-12-13.tr_bEAso8jfzTSNuwCfQmUZJ:recurring, SEK 150.00,paid, created 2026-11-13 00:15:48 UTC.Staging side: not checked yet. Staging has no metrics or logs in monitoring, so the billing database has to be read on the host. Read-only queries:
Expected:
period_endat 2026-12-12 23:59:59.999 Europe/Amsterdam, one newchargewithprovider_reftr_bEAso8jfzTSNuwCfQmUZJand one newinvoicefrom 2026-11-13, and a processedprovider_eventnear 00:15 UTC. Step 8 gets ticked when those match.Step 8 passes. Staging billing database, read on 2026-11-15 (all times UTC):
subscription:active, reference ends insub_Q7CrcoDqkv, period 2026-11-12 18:19:06 to 2026-12-12 22:59:59.999 (23:59:59.999 Europe/Amsterdam).charge: a second row, period2026-11,tr_bEAso8jfzTSNuwCfQmUZJ,succeeded,paid_at2026-11-13 00:15:48. Its period starts where the first charge ends.invoice: number 10, issued 2026-11-13 00:15:50, on that charge. Number 9 is the first charge.provider_event: onepayment.paid, created 2026-11-13 00:15:49.998, processed 00:15:50.51.Mollie's schedule and our period end agree with no edit on our side. The webhook was processed within a second. Next charge on the Mollie side: 2026-12-13.
Still open here: track B1 (the failed renewal, blocked by test mode) and the question to Mollie support.