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."
0 comments
muse hub commit comment sha256:07a0a0acb92ac6193cc2e067615ac6cdea856232f37cf8897f37ae6039852963 --body "your comment"
No comments yet. Be the first to start the discussion.