#andrei_api

1 messages ¡ Page 1 of 1 (latest)

honest crystalBOT
#

👋 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/1341392158535716864

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

onyx dune
#

hi there!

fiery drift
#

hey!

onyx dune
#

you mean you want to have a "name" input field in the payment element?

fiery drift
#

yes, that's right

#

as billing details

onyx dune
honest crystalBOT
fiery drift
#

so, there is no option to set billing name in PaymentElement, like it exist in AddressElement for example?

onyx dune
#

so, there is no option to set billing name in PaymentElement
I just explained how to add it.

fiery drift
#

ok, got it
but why do we need fields?: FieldsOption (that contains name, address, email, phone) in StripePaymentElementOptions?
what is the purpose of this interface?

teal loom
#

Hey! Taking over for my colleague. I'm not sure I understand your latest follow up qustion. What is the issue you are facing ?

fiery drift
#

Hey hey!
The issue, that I'm facing is that I want to see "name" input field in Payment Element on the UI and I want to know how I can make it required, since in StripePaymentElementOptions we do have "fields" with "billingDetails", that contains name, address, phone etc.

#

you know, AddressElement contains Full Name field

#

but its in address element

#

is it possible to show this field in Payment Element since there is such field in PaymentElementProps

teal loom
#

The issue, that I'm facing is that I want to see "name" input field in Payment Element on the UI and I want to know how I can make it required,
No you can't make it required

#

if you want to have it always, then create your own input and remove the name field from all Stripe Elements

fiery drift
#

Control which fields are displayed in the Payment Element.

how can I control it?

#

I can only remove it?

teal loom
#

yes

fiery drift
#

ok got it

#

thx

#

have a nice day