Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4028584
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:14:17+00:00 2026-05-20T11:14:17+00:00

Anyone have any experience with displaying a credit card image dynamically based on the

  • 0

Anyone have any experience with displaying a credit card image dynamically based on the card number entered?

Is there some sort of usable list to run an if then against to set an image to visible or hidden?

Any help/advice is appreciated
Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:14:18+00:00Added an answer on May 20, 2026 at 11:14 am

    According to Wikipedia,

    The first six digits of a card number (including the initial MII
    digit) are known as the issuer identification number (IIN). These
    identify the card issuing institution that issued the card to the card
    holder. The rest of the number is allocated by the card issuer.

    This is followed by table of IIN’s which sheds much darkness on the matter: It’s really up to six digits, usually one, three, or four. For example, if it starts with 4, it’s a VISA (or a co-branded Dankort card), unless the first four digits are 4903, 4905, 4911, or 4936, in which case it’s a Switch debit card. But Switch cards no longer exist; they were sold to MasterCard in 2002, rebranded as Maestro, and new cards were issued. Nevertheless somebody’s kid may dig one out of the attic and try to use it.

    There’s nothing logically difficult or clever about it; it’s just a series of comparisons to prefixes of varying lengths. The sensible implementation would be a series of substring or regex comparisons, if/else/else/else etc.

    A trie would be much more fun to write but it’s not really cricket to leave that kind of code for potentially incompetent (or just busy) successors to maintain.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone have any experience with card on file services for credit cards, that
Does anyone have any experience converting a SocialText wiki into a MediaWiki? Is there
Does anyone have any experience of plotting DAFIF data in ESRI products? are there
anyone have any experience using this? if so, is it worth while?
Anyone have any experience creating a modal dialog box using AJAX and ASP.NET MVC?
Anyone have any experience using the Microsoft Configuration Management Application Block? This is an
anyone have any experience of using them together? How well does it work? or
Anyone have any experience evaluating BlazeDS and GraniteDS? I'm curious about which is better
Anyone have any experience yet getting Radiant CMS extensions to actually make it onto
Does anyone have any experience getting MSTest to copy hibernate.cfg.xml properly to the output

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.