#krazy-dirt
1 messages · Page 1 of 1 (latest)
hi there, if you pass in the customer id when creating a Checkout Session, it'll reuse their existing email address (if it has one) : https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer
hello, if my user is connected via firebase, is there a way to use local storage or so to save his email?
where do you want to save the customer's email from? Do you mean after they have completed a Checkout Session?
no. my user is connected, so i can get his email address using let's say currentUser.email. how can i put the user email in the checkout email box like in the attachement
here in the email field
i want it to be prefilled if possible
you can prefill it by passing in the email in customer_email when creating the Checkout Session : https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer_email
it didn't work
can you share the request id where you've created the Checkout Session?