#pavlos_91429

1 messages · Page 1 of 1 (latest)

olive flameBOT
#

Hello! We'll be with you shortly. 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.

crude linden
#

👋 happy to help

#

the billingDetails.name isn't always required

#

by default the setting is auto

#

meaning that Stripe evaluates whether we need to collect or not the billingDetails

#

if you prefer to always show the billingDetails

#

you should set it to 'never'

#

collect the billingDetails using your own inputs

lucid scroll
#

Not sure I understand. If I always want to show name, I should set that to never?

#

<PaymentElement options={{ terms: { card: "never" }, fields: { billingDetails: { name: "never" } } }} />

#

like this?

#

this doesn't seem to work :/

crude linden
#

you should set it to never

#

and then collect it yourself

#

with your own input

lucid scroll
#

is there a way to add in it in the Stripe payment element form as an input?

crude linden
#

you can't enforce it in the Payment Element

lucid scroll
#

I see. So I would need to add a custom input?

crude linden
#

yes

lucid scroll
#

For example:

<PaymentElement options={{ terms: { card: "never" }, fields: { billingDetails: "never" }} />
// a custom input with the name
// my button
#

If I then collect the name when I confirm intent, would that be added in the Stripe payment method?

crude linden
lucid scroll
#

I see.

#

meaning that Stripe evaluates whether we need to collect or not the billingDetails
is there a doc showing where Stripe would evaluate that?

crude linden
#

not really

#

this really depends on the Payment Mehtod, the country and a lot of other parameters

olive flameBOT
lucid scroll
#

I'm using card

#

And we have a requirement that the user must be using card on their own name

chrome pond
#

Hey! Taking over for my colleague. Let me catch up.

chrome pond
#

but as my colleauge shared with you previously, you can collect the card holder name using your own inputs and then pass them when submitting the SetupIntent

lucid scroll
#

Would that also work for mobile? Is there an easy way to add custom inputs in the existing payment sheets for iOS/Android?

chrome pond
#

No not using payment sheet. You can achieve this using card elements