Live data from Hacker News

How to Correctly Detect Credit Card Type

creditcardjs.com

1–10 of 67 posts

Re: How to Correctly Detect Credit Card Type

#2
Why does it even matter if you show the credit card type when the user is typing it in? If the first 6 numbers determine the card type, then handling card type can be done on the backend. Why make the effort to show users information that they already know, ie. card type?

Re: How to Correctly Detect Credit Card Type

#3

Why does it even matter if you show the credit card type when the user is typing it in? If the first 6 numbers determine the card type, then handling card type can be done on the backend. Why make the effort to show users information that they already know, ie. card type?

I'd say in part because you want to give people a UX they are comfortable with. Sites for years have been asking for "Card type", and so a user may suspect something is wrong if they don't need to enter it and show no indication you know what it is.

Re: How to Correctly Detect Credit Card Type

#4
post #3

Why does it even matter if you show the credit card type when the user is typing it in? If the first 6 numbers determine the card type, then handling card type can be done on the backend. Why make the effort to show users information that they already know, ie. card type?

I'd say in part because you want to give people a UX they are comfortable with. Sites for years have been asking for "Card type", and so a user may suspect something is wrong if they don't need to enter it and show no indication you know what it is.

That seems unlikely, but I've certainly been wrong about UI questions before. I'd be very curious if anyone has any data supporting this idea.

Re: How to Correctly Detect Credit Card Type

#6
post #4
post #3

Earlier quoted context omitted.

I'd say in part because you want to give people a UX they are comfortable with. Sites for years have been asking for "Card type", and so a user may suspect something is wrong if they don't need to enter it and show no indication you know what it is.

That seems unlikely, but I've certainly been wrong about UI questions before. I'd be very curious if anyone has any data supporting this idea.

No data, but as a user I do expect to see a card type selector or indicator, even though I rationally know its superfluous.

Re: How to Correctly Detect Credit Card Type

#7

Why does it even matter if you show the credit card type when the user is typing it in? If the first 6 numbers determine the card type, then handling card type can be done on the backend. Why make the effort to show users information that they already know, ie. card type?

Maybe so that the user has something visual to show them they haven't miss typed that start of the number?

Re: How to Correctly Detect Credit Card Type

#8

Why does it even matter if you show the credit card type when the user is typing it in? If the first 6 numbers determine the card type, then handling card type can be done on the backend. Why make the effort to show users information that they already know, ie. card type?

One scenario where immediate detection is helpful is for unsupported card types. The server detection would require users first fill all their card data only to discover they need to start over.

Re: How to Correctly Detect Credit Card Type

#9

Why does it even matter if you show the credit card type when the user is typing it in? If the first 6 numbers determine the card type, then handling card type can be done on the backend. Why make the effort to show users information that they already know, ie. card type?

It helps to display the card type while you type because then I know that I am typing something reasonable and I know that I am not entering incorrectly. Of course, the entire card number could still be wrong which can only be validated by the server/backend processor but overall, displaying the type gives a level of "instant" comfort. It also gives users peace of mind that they system knows what they are doing. Think non technical users who don't understand the diff b/w client side vs server side validation. For them, it will be comfortable to see that the system interprets their card type which might give them more comfort. No data to back this up but just something I might think as a user.
Post reply on HN