View Single Post
Old 02-25-2010, 09:46 AM  
grumpy
Too lazy to set a custom title
 
grumpy's Avatar
 
Join Date: Jan 2002
Location: Holland
Posts: 9,870
Quote:
Originally Posted by quantum-x View Post
The first four digits of a CC are simply the bank identifiers. If you have a user's laster 12 digits, and GeoIP their country, run that against a list of card-issuing banks in that country (normally going to be 10 or less) - bam!

If you're really looking to verify cc#s, check out http://en.wikipedia.org/wiki/Luhn_algorithm

Note for advanced players: the linked PHP version on that article has some bugs in it.
i know the algorithm for that, but here you can check if the card has been used on a pornsite so you really know its valid ( its just an extra chck )
__________________
Don't let greediness blur your vision | You gotta let some shit slide
icq - 441-456-888
grumpy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote