#bryllelagunda-checkout
1 messages · Page 1 of 1 (latest)
Yes, I have a simple form in my website then they will redirect to this stripe checkout page but I don't want my customer to fill up again the email input field
If you pass a customer when creating the Checkout Session, and the customer has an email set, then the email field will be prefilled.
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer
via PHP?
Yes what I explained above will work in all our languages, including PHP.
I mean here, I need to set the customer email?:
Actually there are two ways to prefill the customer email:
- Set the
customer_emailfield you just mentioned - Or you set the
emailon the Customer object (https://stripe.com/docs/api/customers/create), and then pass thecustomerto the Checkout