readest/apps
Huang Xin 73d45abf73
Some checks are pending
CodeQL Advanced / CodeQL gate (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Blocked by required conditions
CodeQL Advanced / Analyze (javascript-typescript) (push) Blocked by required conditions
CodeQL Advanced / Analyze (python) (push) Blocked by required conditions
CodeQL Advanced / Analyze (rust) (push) Blocked by required conditions
Publish Docker image / build (linux/amd64, ubuntu-latest) (push) Waiting to run
Publish Docker image / build (linux/arm64, ubuntu-24.04-arm) (push) Waiting to run
Publish Docker image / merge (push) Blocked by required conditions
Build with Nix / tests (push) Waiting to run
PR checks / build_web_app (push) Blocked by required conditions
PR checks / CI gate (push) Waiting to run
PR checks / nix_flake_check (push) Blocked by required conditions
PR checks / rust_lint (push) Blocked by required conditions
PR checks / koplugin_rust_lint (push) Blocked by required conditions
PR checks / test_web_app (1) (push) Blocked by required conditions
PR checks / test_web_app (2) (push) Blocked by required conditions
PR checks / test_web_browser (push) Blocked by required conditions
PR checks / test_extensions (push) Blocked by required conditions
PR checks / build_tauri_app (push) Blocked by required conditions
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Deploy to vercel on merge / build_and_deploy (push) Waiting to run
fix(payment): keep the plan while a plan switch's bank debit is processing (#8121)
Switching plans in the Stripe billing portal bills the prorated
difference at once. Paid by US bank debit (ACH), that payment stays
`processing` for days, and Stripe marks the subscription `past_due`
until it clears. getHighestActivePlan counted only `active` and
`trialing`, so the customer.subscription.updated webhook wrote
`plan: free` the moment the subscriber switched: no paid features, and
cloud sync blocked once their library was over the free quota. A new
subscription paid the same way is `active` from the start, so only the
switch hit this.

A `past_due` subscription now counts while its latest invoice's
PaymentIntent is `processing`. When the debit settles, invoice.paid or
invoice.payment_failed (both on the live endpoint) re-resolves the plan,
so a failed debit still drops it as before. Failed card payments are
unchanged.

Reported by a subscriber by email.

Verified:
- stripe-server.test.ts: the two new processing tests fail on main with
  `expected 'free' to be 'plus'` and pass with the fix.
- stripe-server.live.test.ts, read-only against the reporter's live
  subscription (past_due, ACH payment processing): main resolves `free`,
  this branch resolves `plus`.
- pnpm test: 1452 files passed, 0 failed. pnpm lint: clean apart from
  one warning and one info that main has too. pnpm format:check: clean.
- Not run: an end-to-end ACH plan switch with webhook delivery in Stripe
  test mode.

Co-authored-by: Claude Code (Claude Opus 5.5) <noreply@anthropic.com>
2026-11-29 18:29:17 +01:00
..
readest-app fix(payment): keep the plan while a plan switch's bank debit is processing (#8121) 2026-11-29 18:29:17 +01:00
readest-calibre-plugin feat(calibre): add multi-language support (#6768) 2026-10-13 18:46:06 +02:00
readest-crosspoint-plugin feat(crosspoint): sign in with a code through /api/auth/device (owner: "use a more generic path for /api/crosspoint/device/code") (#7859) 2026-11-24 04:21:00 +01:00
readest.koplugin feat(kosync): match file names across readers with a format or a book's own name (#7864) (#7873) 2026-11-24 08:32:36 +01:00