#gazi_code

1 messages ยท Page 1 of 1 (latest)

vagrant thunderBOT
#

๐Ÿ‘‹ 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/1430121678142312540

๐Ÿ“ 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.

fickle lantern
#

hey there, looking into your question now

#

would you mind clarifying where you want the cardholder name to be displayed?

glad wigeon
#

Inside the PaymentElements component

#

Can you help me?

fickle lantern
#

the Payment Element component consists of inputs to collect the customer's payment method - it typically isn't used for rendering/displaying customer data

#

you mentioned that it was displayed in your old component - is it possible for you to share a screenshot of this?

vagrant thunderBOT
glad wigeon
#

I'm asking if I can consistantly display the input field for customer to enter Cardholder name.

#

I mean that is a part of the customer's payment method, right?

sudden acorn
#

๐Ÿ‘‹ Hey, taking over here, just taking a look

glad wigeon
#

This is the new stripe PaymentElement

#

And this is our old component

#

It contains the Name on Card field aka Cardholder name

sudden acorn
#

To collect a name, you'd need to use an Address Element - https://docs.stripe.com/elements/address-element. The Payment Element will just collect the minimum amount of details required for the payment method, and name is not required for card

glad wigeon
#

But I can't integrate both together to work nicely, right?

sudden acorn
#

They can both be implemented together on one page, but the name field won't be included within the Payment Element, if that's what you mean?

glad wigeon
#

Yeah well it would be better to be integrated within, because if we just add it on top it would look something like this:

#

Which is not what we really want

sudden acorn
#

If you just want to collect the name, probably the best approach would be to include your own input element for the name and collect it yourself, and pass it along. Unfortunately there's no way to force automatic name collection with the Payment Element for cards (It may appear for some other payment methods, where it's necessary that we collect it)

vagrant thunderBOT
glad wigeon
#

So lets say if i collected my user's name earlier, I can than pass it directly into stripe.confirmPayment(), right?

crystal comet
#

If you know the name in advance, you can also pass in the billing details when creating the Payment Element