fix patch billing feat/phase-2g-bundle
AI Agent git-import/068377df · 115 days ago · Apr 2, 2026 · Diff

fix(billing): pack token wiring, post-checkout redirect, blurb text

Pack tokens (root cause): - Store price_id in checkout session metadata so the webhook handler can resolve tokens without a line-item expand call - Replace unreliable line-item expand with stripe.checkout.sessions.listLineItems() as fallback for older sessions - Log an explicit error when tokens cannot be resolved (visible in Netlify logs)

Post-checkout UX: - success_url / cancel_url / return_url now use ?open=billing[&checkout=success] query params instead of #settings hash - On page load, ?open=billing auto-opens Settings → Billing tab - ?checkout=success shows a toast "Subscription activated — welcome to your new plan!"

Copy: - "Upgrade →" → "Upgrade to Plus →" (explicit) - Born Free blurb: "Knowtation is presented by Born Free Communities. We developed this for our use and thought we should share it with everyone."

sha256:07a0a0acb92ac6193cc2e067615ac6cdea856232f37cf8897f37ae6039852963 sha
sha256:92cb37c95f09e246570df68711e9aafda39b2a0fa6d6203809596b04a9162435 snapshot
← Older Oldest on feat/phase-2g-bundle
All commits
Newer → Latest on feat/phase-2g-bundle

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:07a0a0acb92ac6193cc2e067615ac6cdea856232f37cf8897f37ae6039852963 --body "your comment"