#nimheru_force-name-collection
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1235970335191601172
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- nimheru_payment-element-placeholders, 3 days ago, 22 messages
Hi ๐ no, you cannot suppress the address collection portion of our Address Element.
Ok I guessed as much! The payment element when on it's own asks for country and post code which is fine, is there a way to get the payment element to ask for name?
If you want to only collect the name for your cusotmers, I would recommend adding your own field to your form for doing so, and providing the value from that to payment_method_data.billing_details.name when confirming your payment.
No, you can't force the Payment Element to collect a name either.
I'd also recommend making sure you suppress the collection of name in the Payment Element, in case you ever expand to accepting payment method types where we do collect a name. To do so you set fields.billingDetails.name to never when creating the Payment Element:
https://docs.stripe.com/js/elements_object/create_payment_element#payment_element_create-options-fields-billingDetails-name
nimheru_force-name-collection
ah ok thats useful thanks, do you know which payment methods do cause it to capture name?
(is there a list of these optional fields somewhere?)
Not all of them offhand, I think bank payments tend to collect it.
We will display a name field if we need to collect it, unless you suppress it with the approach shown above, for the payment to be successful which varies by Payment Method type.
i see, ok thanks that gives me something to go on
Any time!