#gazi_code
1 messages ยท Page 1 of 1 (latest)
๐ 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.
hey there, looking into your question now
would you mind clarifying where you want the cardholder name to be displayed?
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?
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?
๐ Hey, taking over here, just taking a look
This is the new stripe PaymentElement
And this is our old component
It contains the Name on Card field aka Cardholder name
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
But I can't integrate both together to work nicely, right?
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?
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
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)
So lets say if i collected my user's name earlier, I can than pass it directly into stripe.confirmPayment(), right?