#rickyhaswifi-splitcard-icon
1 messages · Page 1 of 1 (latest)
This thread has been archived. If you need help with anything else please ask in #dev-help or contact Stripe Support: https://support.stripe.com/contact
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Okay let's chat in here @wispy cape! @left thorn had to step away so I'm catching up here
showIcon is not a property of cardNumberElement, CardExpiryElement,
or CardCvcElement,
Thanks taking a look.
This same error shows if you explicitly set it to showIcon={true}?
yes in React showIcon={true} & showIcon are the same
I'm aware, just curious because I'm surprised that is showing.
Let me do some more digging here
Hello! Just hopping in since the channel is busy today
showIcon isn't a top level property - it's nested under options, so you'd have to do something like this:
const OPTIONS = {
showIcon: true,
};
return (
<div className="App">
<CardNumberElement options={OPTIONS} />
</div>
);
and it's only available for CardNumberElement, so you shouldn't be setting it for CardExpiryElement or CardCvcElement
That was it thank you!
I didn't see that Option in the docs
No worries! It's easy to miss