Fix checkout auth: free-success panel + Stripe auto-init for paid plans #51

Merged
will.anderson merged 1 commits from fix/checkout-auth-reveal into dev 2026-05-10 22:00:59 +00:00
Owner

Two bugs fixed in checkout-auth.el:

  1. Free plan - blank page when already logged in: revealPaymentForm was hiding auth-section but never showing free-success. User with existing Supabase session saw blank right column.

  2. Paid plan - Stripe never loads for non-logged-in users: window.initStripe only called from revealPaymentForm. Non-logged-in users saw "Loading payment form..." forever. Now inits immediately when no session detected.

Also added _formRevealed guard to prevent double-call.

Two bugs fixed in checkout-auth.el: 1. **Free plan - blank page when already logged in**: revealPaymentForm was hiding auth-section but never showing free-success. User with existing Supabase session saw blank right column. 2. **Paid plan - Stripe never loads for non-logged-in users**: window.initStripe only called from revealPaymentForm. Non-logged-in users saw "Loading payment form..." forever. Now inits immediately when no session detected. Also added _formRevealed guard to prevent double-call.
will.anderson added 1 commit 2026-05-10 22:00:43 +00:00
Fix checkout: show free-success when logged in; init Stripe without auth on paid plans
Dev — Build & local smoke test / build-smoke (pull_request) Failing after 1m47s
0263e51407
- revealPaymentForm: for free plan, show #free-success panel (was doing nothing,
  leaving page blank when user already had a Supabase session)
- checkExistingSession: for paid plans with no session, call initStripe immediately —
  auth is optional, the payment form shouldn't wait indefinitely
- Guard _formRevealed: prevent double-call from handleAuthRedirect + checkExistingSession
will.anderson merged commit e292453905 into dev 2026-05-10 22:00:59 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: neuron-technologies/neuron-web#51