#pavlos_91429
1 messages · Page 1 of 1 (latest)
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.
- pavlos_91429, 2 days ago, 18 messages
- pavlos_91429, 3 days ago, 7 messages
- pavlos_91429, 3 days ago, 4 messages
- pavlos-mobile-confirm, 3 days ago, 12 messages
- pavlos_91429, 3 days ago, 16 messages
- pavlos-ephemeral-key-qs, 4 days ago, 11 messages
👋 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
and finally you should pass that to the confirmSetup function https://stripe.com/docs/js/setup_intents/confirm_setup#confirm_setup_intent-options-confirmParams-payment_method_data-billing_details
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 :/
is there a way to add in it in the Stripe payment element form as an input?
you can't enforce it in the Payment Element
I see. So I would need to add a custom input?
yes
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?
and finally you should pass that to the confirmSetup function https://stripe.com/docs/js/setup_intents/confirm_setup#confirm_setup_intent-options-confirmParams-payment_method_data-billing_details
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?
not really
this really depends on the Payment Mehtod, the country and a lot of other parameters
I'm using card
And we have a requirement that the user must be using card on their own name
Hey! Taking over for my colleague. Let me catch up.
There is no public and explicit doc explaining when the name input is displayed
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
Would that also work for mobile? Is there an easy way to add custom inputs in the existing payment sheets for iOS/Android?