How To Credit Card validation

How To Credit Card validation in asp.net in Real Time project.
please gives ideas.
Thanks





Answer this question

How To Credit Card validation

  • SavasCilve

    Off the top of my head... implement an ASP .NET web service.

    Credit cards use the mod 10 luhn algorithm to add the last check digit - and that validates the card number - google "luhn".

    To check the card type, have a look at the first digit to see if it matches the card type that the user selected - afair 4 is visa, 5 is mastercard, 6 is switch/solo. You should be able to find a full list somewhere on the web.

    To check the card details properly you'd have to hook up to a financial institution database.


  • How To Credit Card validation