#hiroshi-elements-name
1 messages · Page 1 of 1 (latest)
Hello @amber moth. Do you have a bit more context? Where do you see the name? Which payment method are you integrating?
@amber moth did you have more details?
oh soryr
i didn't see your msg
i'm using stripe connect
i just created a payment intent
my client doesn't want to put name
because the're using iDeal
i don't remember how that works but i did it before with stripe elements
So you're using iDEAL? If so iDEAL requires collecting the customer name, no way around it
You can pre-fill it if you collect it yourself but you can't avoid collecting it I think
that's weird
because i opened a tread before
and i did it
i lost that code
but the engineers passed me some code
in stripe elements
something like
name[0]: false
happens that i can fill the name
or client can do that
but this client is kind of special
and don't want to approve it
You can try https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-fields-billingDetails-name and set it to never but some payment methods do require a name.
if Elements doesn't collect it, it will error unless you pass the value yourself from collecting it before
how can i prefil and remove the input?
pre-filling doesn't make sense if you remove the input
https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-payment_method_data-billing_details you can pass the name in this when calling confirmPayment