#berci-paymentelement-email
1 messages · Page 1 of 1 (latest)
hi!
Hello 👋
How can I help?
I'm using custom payment flow in my code, is there a way I can require the customers' email address at the checkout?
Ah so I'm guessing you're using PaymentElement
yes
Fields on the PaymentElement (including email) are shown dynamically (based on if the payment method requires it to succeed)
https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-fields
So you can't require it all the time. You can however build your own UI and pass in the information with confirmParams
https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-payment_method_data-billing_details
So I can't make a system only with stripe, where its requriring email address all the time?