#u2ojr2-elements
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ no, there is not a pre-built element for collecting names.
You can view the available elements by clicking on the dropdown found here:
https://stripe.com/docs/js/element/other_element
How would you suggest I collect firstname if it isn't possible via elements.create?
Are you planning to use the Payment Element?
Yeah
Gotcha, then you'll want to have a text input field to collect the information, then pass it into the confirmation request via billing_details.
https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-payment_method_data-billing_details
Alright thanks I will give this a go and if I have any issues let you know
๐ happy to help!