d6731f783498eeb5364974d79df5471a47245bc4
Restores the /api/link-customer endpoint that was lost in the stash. It runs right before stripe.confirmPayment() and: - searches Stripe for an existing Customer by email - creates one if missing (URL-encodes + and @ so Gmail aliases work) - attaches the Customer to the live PaymentIntent - upserts the Supabase waitlist row with stripe_customer_id + plan Stripe locks customer on a Charge once set, so the webhook handler is the second-line backstop for any race where confirmPayment beats the link call. Also: change return_url from /marketplace/success to /account?welcome=1 so buyers land where they need to be, and switch /marketplace/success and /account from str_eq to str_starts_with so Stripe-appended query strings (?payment_intent=...&redirect_status=succeeded) don't 404.
Description
Neuron marketing site - El-native server
9.7 MiB
Languages
Emacs Lisp
47.1%
C
34.7%
HTML
7.5%
TypeScript
5.4%
JavaScript
2.4%
Other
2.9%