Fix checkout auth: free-success panel + Stripe auto-init for paid plans #51
Reference in New Issue
Block a user
Delete Branch "fix/checkout-auth-reveal"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two bugs fixed in checkout-auth.el:
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.
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.