#xlex - payment element name and email
1 messages ยท Page 1 of 1 (latest)
Hi ๐
This isn't something you can necessarily force with the Payment Element. It will collect these details when the Payment Method selected by the user requires them.
If you want to collect this data for your own records the best bet is to add some form elements and send them to your own server when you handle the submit event.
Thanks for the quick reply. That's what I figured. Is there any way to inject fields of my own here?
No, this is rendered within it's own <iframe> element. The best you could do is place it right above and try to match styling.
Fair enough. Can I submit this as a feature request? Our use case:
We always need email in order to generate and fulfill a purchaser's order, regardless of the actual payment method. I love the idea of handing off all the data collection to the Stripe component, so being able to add the email UI element would skip us needing to much write custom code.
Thanks for the quick help ๐ค
I can understand that. But we also advise most of our users to store as much data on their own systems as possible. But handing off email collection would make it a more tidy package.
I definitely want to store the data myself, I'd just love Stripe to give the UI element ๐
I can understand that.