Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove / replace / stop the rotating credit card icons in the number input field #3514

Open
rogercoathup opened this issue Oct 16, 2024 · 4 comments

Comments

@rogercoathup
Copy link

Want to switch to the new checkout experience, but the display of credit card icons in the card number input field, in particular the rotating icons are a barrier to doing this.

I see previous issues that relate to this, but they appear to have diverted from the original request and been closed without providing a solution.

Can a filter be provided that allows us to remove or override those icons, e.g. allowing the simple static icon of the previous checkout experience?

Image

@annemirasol
Copy link
Contributor

Looked into this, and Stripe does not support hiding the card brand logos for Payment Elements, at the moment: https://docs.stripe.com/sdks/stripejs-react#elements-provider

Also: https://stackoverflow.com/questions/73580930/how-can-i-hide-the-card-icons-in-stripe-payment-element

@rogercoathup Could you share with us why you want the card brand logos gone? The context may help when I file the issue with Stripe. Thank you!

@rogercoathup
Copy link
Author

@annemirasol -- thanks for checking.

Couple of reasons for wanting to remove them:

  1. Doesn't match the look & feel of our checkout page (the simple grey card icon of the legacy checkout was a much better match for our design)
  2. The rotating icon is an annoying distraction -- we want customers to enter their card details, not be distracted by rotating icons

@annemirasol
Copy link
Contributor

Filed the request to Stripe here: stripe/react-stripe-js#537

@rogercoathup
Copy link
Author

Thanks @annemirasol much appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants