/    Sign up×
Community /Pin to ProfileBookmark

identity validation

hey, Im writing this website where its very important that we verify who the user is (they are required to “sign” various contracts so we have to make sure they are adults, that they are who they say we are for any potential legal problems, and possibly that they live in the US). We’re planning on offering multiple methods. The three we’ve thought of are SSN, credit card #, or ID card number. The thing I need help with is how to generalize this data. The only standard I know is in NY. I have no clue whether or not other countries have SSN’s (Im guessing they dont since its only 9 digits). I dont know how many digits other state’s ID card #s are (NYs is 9). I think I have the credit card #s done, being 16-20 digits.

If anyone knows these standards that would be great. Also, do any of you know some third party service that would verify these for us? I want everything embedded in the website and as far as I can tell the services I found either dont offer it, or arent clear on what they offer.

Also, I want other countries to be built into the site, even if we cant immediately allow people from them onto the website. Does anyone know other means of identity verification?

note: I know this post isnt a perfect match for this topic, but the website is written in PHP/MySQL and I figured this would be the section to go to since PHP is a great language to do stuff like this with.

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@felgallSep 14.2007 — Credit card number lengths are standardised.

Diners Club - 14 digits

Amex - 15 digits

All others - 16 digits

The first four digits of the credit card number always identify the type of card and the country that issued it. The last digit is a checkdigit that can be calculated from the preceding digits to confirm that it is a valid number.
Copy linkTweet thisAlerts:
@michael879authorSep 14.2007 — thanks but that was my lowest priority question haha. From what ive read american express cards are 20 digits, while most others are 16. I didnt know diners club was different, thanks for that. Also the country code might be nice for once I verify its a valid card.
×

Success!

Help @michael879 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...