#rdeveloper_24105
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.
- rdeveloper_24105, 11 hours ago, 7 messages
- rdeveloper_24105, 5 days ago, 5 messages
- rdeveloper_24105, 5 days ago, 4 messages
Hi, when you pass in 'auto', https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-fields-billingDetails-email it will only collect an email if the payment method requires it. If you always want to collect it, you can disable it with 'never' on the email parameter and then have your own UI to collect it.
Thank you, I got it.
I have another question, it's possible to remove all the labels from this form except the first?
For example, keeps the "Card number" and hide the "Expiration", "CVC"?
No, that is not possible
And what would happen if I want to remove all the labels at the top (Card Number, Expiration and CVC) is it possible? I don't want to use " labels: 'floating'," too
You might be able to use this: https://stripe.com/docs/elements/appearance-api?platform=web#others
You can customize some of how things look using the Appearance API ^ so I recommend playing with this
After testing, I think you'd want to pass labels: 'floating' and it looks like it is what you want
@nocturne cedar let me know if that works for you
This unfortunately does not reach my design requirements, I am exploring the documentation on .StripeElement to use CSS in the form and try to adjust what I need
The Appearance API only allows you to make some changes only.
Ok I see, I'll talk to the designers of my project about it. Thank you very much