Results 1 to 10 of 10

Thread: validate credit card

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2004
    Posts
    47

    validate credit card

    Hi,

    I would like to ask does anyone here know how to validate credit numbers?

    reply: asap

    Thank you

  2. #2
    Frenzied Member Fishcake's Avatar
    Join Date
    Feb 2001
    Location
    Derby, UK
    Posts
    1,092
    not done much on it myself but i remember it having something to do with running a mod 10 algorithm over it and ensuring the result is 0.

    Actually searching for "mod 10 credit card validation" on google turns up a fair few results.

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2004
    Posts
    47
    Did anyone here have sample validate credit card codes for me to reference? Thank You

  4. #4
    Fanatic Member SkiNLaB's Avatar
    Join Date
    Jan 2002
    Location
    Sydney, Australia
    Posts
    747
    Originally posted by Fishcake
    not done much on it myself but i remember it having something to do with running a mod 10 algorithm over it and ensuring the result is 0.

    Actually searching for "mod 10 credit card validation" on google turns up a fair few results.
    ur avatar is most disturbing. seek professional help.

  5. #5
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632
    Try doing a search in the General VB questions section.
    The code will be the same and this question is has been asked many times.

    Woof

    PS I think you both need ya heads sorted

  6. #6
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Use you can use the Luhn algorithm to validate the format of a credit card number, but you'll need a merchant account with your bank or a c/c machine to actually process the number.... either that, or go through a 3rd party like www.regnow.com
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  7. #7
    Member
    Join Date
    Mar 2000
    Location
    Switzerland
    Posts
    53
    A luhn check example:
    http://programmers-corner.com/viewSource.php/35

    To protect you from fraud you can check the credit card user's IP and it's credit card number, so you'll see where the IP is from and where the credit card was issued.

    Check this service out if you have fraud problems:
    http://www.maxmind.com/app/ccv

  8. #8
    New Member
    Join Date
    Dec 2022
    Posts
    2

    Re: validate credit card

    If doubling any of the numbers produces a sum greater than nine, subtract nine from the sum to get a single digit. Take the sum of all the digits, and if that sum is divisible by ten, then the card's number is valid.

    How to Validate Credit Cards in 8 Simple Steps
    Swipe the card. ...
    Obtain transaction authorization approval. ...
    Compare the account numbers. ...
    Check the card's expiration date. ...
    Check the Electronic Warning Bulletin or International Warning Notices. ...
    Check the four-digit number in the signature panel of the card.

    Thanks

  9. #9
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    38,988

    Re: validate credit card

    This thread was last posted to back in 2004, but that's still an interesting variation on 'casting out nines', which doesn't see the light of day much anymore.
    My usual boring signature: Nothing

  10. #10
    New Member
    Join Date
    Dec 2022
    Posts
    2

    Re: validate credit card

    If doubling any of the numbers produces a sum greater than nine, subtract nine from the sum to get a single digit. Take the sum of all the digits, and if that sum is divisible by ten, then the card's number is valid.

    How to Validate Credit Card details checker in 8 Simple Steps
    Swipe the card. ...
    Obtain transaction authorization approval. ...
    Compare the account numbers. ...
    Check the card's expiration date. ...
    Check the Electronic Warning Bulletin or International Warning Notices. ...
    Check the four-digit number in the signature panel of the card.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width