Re: Credit Card Validation

2001-11-29 Thread Bud

On 11/28/01, Jim McAtee penned:
>Can anyone point me toward an authoritative source for the algorithms used
>to validate credit card numbers and to identify card types based on the card
>number?  There are numerouse code examples to be found on the web, in
>various languages (but with significant differences in both the checksum
>validation and in the card identification).  I'd like to find a source that
>I can have a little more confidence in.


Not sure about the algorithm, but here is what I use the check the card type.




Card number does not match card type.


-- 

Bud Schneehagen - Tropical Web Creations

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Credit Card Validation

2001-11-29 Thread Joel Parramore

CyberCash (www.cybercash.com) used to have references on their site --- you
might check there to find what you're looking for.

Regards,
Joel Parramore


> -Original Message-
> From: Jim McAtee [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 29, 2001 12:03 AM
> To: CF-Talk
> Subject: Re: Credit Card Validation
>
>
> Lee,
>
> Thanks.  I've come across similar tables.  Trouble is each of
> them contains
> one or two more prefixes than the last one.  For example, I've
> also seen the
> prefix 38 listed for Diners Club.  Obviously prefixes are being added,
> albeit slowly, as needed.  If I'd relied on the first table I came across,
> published maybe two or three years ago (Who knows when - it was on some
> developer's website without a date), then I might be rejecting cards that
> were issued in the last couple of years.
>
> I've got the Luhn mod-10 checksum algorithm implemented in both JavaScript
> and CFScript.  I've also come across mention of a "check digit" (rightmost
> digit) and another algorithm to do a checksum against this digit.  Perhaps
> it's just an alternative way of doing the mod-10 checksum.  I haven't
> examined it that closely.
>
> What I'm really looking for is a more authoritative source for this
> information.
>
> Jim
>
>
> - Original Message -
> From: "Lee Fuller" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Wednesday, November 28, 2001 9:35 PM
> Subject: RE: Credit Card Validation
>
>
> > Actually, here's even more info...
> >
> >
> >
> > *CARD TYPES*PREFIX   *WIDTH
> > American Express   34, 3715
> > Diners Club300 to 305, 3614
> > Carte Blanche  3814
> > Discover   6011  16
> > EnRoute2014, 214915
> > JCB3 16
> > JCB2131, 180015
> > Master Card51 to 55  16
> > Visa   4 13, 16
> >
> 
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Credit Card Validation

2001-11-28 Thread Paris Lundis

Jim the long list Lee provided covers the majors... any second digit will be
something under that program or some obscure card for some small chain
store.. the major ones were covered in detail in Lee's message with the
correct digit length...

as for the checksum (3 digits) there is nothing I seem to know about it
being programatically/numerically related to the account... prove me wrong
:)



-Original Message-
From: Jim McAtee [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 29, 2001 00:03
To: CF-Talk
Subject: Re: Credit Card Validation


Lee,

Thanks.  I've come across similar tables.  Trouble is each of them contains
one or two more prefixes than the last one.  For example, I've also seen the
prefix 38 listed for Diners Club.  Obviously prefixes are being added,
albeit slowly, as needed.  If I'd relied on the first table I came across,
published maybe two or three years ago (Who knows when - it was on some
developer's website without a date), then I might be rejecting cards that
were issued in the last couple of years.

I've got the Luhn mod-10 checksum algorithm implemented in both JavaScript
and CFScript.  I've also come across mention of a "check digit" (rightmost
digit) and another algorithm to do a checksum against this digit.  Perhaps
it's just an alternative way of doing the mod-10 checksum.  I haven't
examined it that closely.

What I'm really looking for is a more authoritative source for this
information.

Jim


- Original Message -
From: "Lee Fuller" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, November 28, 2001 9:35 PM
Subject: RE: Credit Card Validation


> Actually, here's even more info...
>
>
>
> *CARD TYPES*PREFIX   *WIDTH
> American Express   34, 3715
> Diners Club300 to 305, 3614
> Carte Blanche  3814
> Discover   6011  16
> EnRoute2014, 214915
> JCB3 16
> JCB2131, 180015
> Master Card51 to 55  16
> Visa   4 13, 16
>

~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Credit Card Validation

2001-11-28 Thread Lee Fuller

Agreed.  But not sure you're going to find it.  And not sure you'll find
anything that will cover all future possibilities.  But if you do..
Don't hesitate to share with all of us! ;)

Lee


> -Original Message-
> From: Jim McAtee [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, November 28, 2001 9:03 PM
> To: CF-Talk
> Subject: Re: Credit Card Validation
> 
> 
> Lee,
> 
> Thanks.  I've come across similar tables.  Trouble is each of 
> them contains one or two more prefixes than the last one.  
> For example, I've also seen the prefix 38 listed for Diners 
> Club.  Obviously prefixes are being added, albeit slowly, as 
> needed.  If I'd relied on the first table I came across, 
> published maybe two or three years ago (Who knows when - it 
> was on some developer's website without a date), then I might 
> be rejecting cards that were issued in the last couple of years.
> 
> I've got the Luhn mod-10 checksum algorithm implemented in 
> both JavaScript and CFScript.  I've also come across mention 
> of a "check digit" (rightmost
> digit) and another algorithm to do a checksum against this 
> digit.  Perhaps it's just an alternative way of doing the 
> mod-10 checksum.  I haven't examined it that closely.
> 
> What I'm really looking for is a more authoritative source 
> for this information.
> 
> Jim
> 
> 
> - Original Message -
> From: "Lee Fuller" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Wednesday, November 28, 2001 9:35 PM
> Subject: RE: Credit Card Validation
> 
> 
> > Actually, here's even more info...
> >
> >
> >
> > *CARD TYPES*PREFIX   *WIDTH
> > American Express   34, 3715
> > Diners Club300 to 305, 3614
> > Carte Blanche  3814
> > Discover   6011  16
> > EnRoute2014, 214915
> > JCB3 16
> > JCB2131, 180015
> > Master Card51 to 55  16
> > Visa   4 13, 16
> > 
> 
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Credit Card Validation

2001-11-28 Thread Jim McAtee

Lee,

Thanks.  I've come across similar tables.  Trouble is each of them contains
one or two more prefixes than the last one.  For example, I've also seen the
prefix 38 listed for Diners Club.  Obviously prefixes are being added,
albeit slowly, as needed.  If I'd relied on the first table I came across,
published maybe two or three years ago (Who knows when - it was on some
developer's website without a date), then I might be rejecting cards that
were issued in the last couple of years.

I've got the Luhn mod-10 checksum algorithm implemented in both JavaScript
and CFScript.  I've also come across mention of a "check digit" (rightmost
digit) and another algorithm to do a checksum against this digit.  Perhaps
it's just an alternative way of doing the mod-10 checksum.  I haven't
examined it that closely.

What I'm really looking for is a more authoritative source for this
information.

Jim


- Original Message -
From: "Lee Fuller" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, November 28, 2001 9:35 PM
Subject: RE: Credit Card Validation


> Actually, here's even more info...
>
>
>
> *CARD TYPES*PREFIX   *WIDTH
> American Express   34, 3715
> Diners Club300 to 305, 3614
> Carte Blanche  3814
> Discover   6011  16
> EnRoute2014, 214915
> JCB3 16
> JCB2131, 180015
> Master Card51 to 55  16
> Visa   4 13, 16
> 
~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Credit Card Validation

2001-11-28 Thread David Brown

Kind of be littering don't you think?

-Original Message-
From: Paris Lundis [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 28, 2001 11:25 PM
To: CF-Talk
Subject: RE: Credit Card Validation

Here's the deal:

it is a mod-10 formula... based on the length... so on some it is odd
digit
math, others it is even...

3xxx - AMEX
4xxx - Visa
5xxx - MasterCard
6xxx - Discover

the formula is widely available and hasn't changed in 20 years.. it is
2nd
grade math

-p


-Original Message-
From: Jim McAtee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 23:16
To: CF-Talk
Subject: Credit Card Validation


Can anyone point me toward an authoritative source for the algorithms
used
to validate credit card numbers and to identify card types based on the
card
number?  There are numerouse code examples to be found on the web, in
various languages (but with significant differences in both the checksum
validation and in the card identification).  I'd like to find a source
that
I can have a little more confidence in.

Thanks,
Jim


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Credit Card Validation

2001-11-28 Thread Lewis Sellers

On Wed, 28 Nov 2001 23:25:14 -0500, "Paris Lundis"
<[EMAIL PROTECTED]> wrote:

>Here's the deal:
>
>it is a mod-10 formula... based on the length... so on some it is odd digit
>math, others it is even...
>
>3xxx - AMEX
>4xxx - Visa
>5xxx - MasterCard
>6xxx - Discover
>
>the formula is widely available and hasn't changed in 20 years.. it is 2nd
>grade math


It's been ages since I wrote up and cf or javascript code for it but,
to expand: I believe it was called the "lun"(?) algorithm.

Basically it does NOT validate the credit card number -- you have to
talk to a cc gateway for that. It's purpose was to generate a long
number that was resistant to typos by data entry clerks.

If you mistype a single digit in cc number there's a pretty good
chance the lun alg will will report it's an invalid cc number.

That's all all it does -- catch simple typos.

--min
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Credit Card Validation

2001-11-28 Thread Lee Fuller

Actually, here's even more info...



*CARD TYPES*PREFIX   *WIDTH
American Express   34, 3715
Diners Club300 to 305, 3614
Carte Blanche  3814
Discover   6011  16
EnRoute2014, 214915
JCB3 16
JCB2131, 180015
Master Card51 to 55  16
Visa   4 13, 16
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Credit Card Validation

2001-11-28 Thread Lee Fuller

Jim,

There are more than a few CF tags used for verifying that a card number
is valid.  Search the tag gallery for that.  As for identifying card
types, here's the key that I use:

Starts with...  Type

3   Amex / Diner's Club
4   Visa
5   Mastercard
6   Discover


HTH

Lee

> -Original Message-
> From: Jim McAtee [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, November 28, 2001 8:16 PM
> To: CF-Talk
> Subject: Credit Card Validation
> 
> 
> Can anyone point me toward an authoritative source for the 
> algorithms used to validate credit card numbers and to 
> identify card types based on the card number?  There are 
> numerouse code examples to be found on the web, in various 
> languages (but with significant differences in both the 
> checksum validation and in the card identification).  I'd 
> like to find a source that I can have a little more confidence in.
> 
> Thanks,
> Jim
> 
~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Credit Card Validation

2001-11-28 Thread Paris Lundis

Here's the deal:

it is a mod-10 formula... based on the length... so on some it is odd digit
math, others it is even...

3xxx - AMEX
4xxx - Visa
5xxx - MasterCard
6xxx - Discover

the formula is widely available and hasn't changed in 20 years.. it is 2nd
grade math

-p


-Original Message-
From: Jim McAtee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 23:16
To: CF-Talk
Subject: Credit Card Validation


Can anyone point me toward an authoritative source for the algorithms used
to validate credit card numbers and to identify card types based on the card
number?  There are numerouse code examples to be found on the web, in
various languages (but with significant differences in both the checksum
validation and in the card identification).  I'd like to find a source that
I can have a little more confidence in.

Thanks,
Jim

~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Credit card validation service?

2000-10-25 Thread Stephen M. Aylor


You may want to look at www.Charge.com

They have a web based "console" that is in lieu of the hardwired terminals.

Just a thought

Steve

- Original Message -
From: "Ryan" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, October 25, 2000 12:55 PM
Subject: OT: Credit card validation service?


> Anyone ever heard of a credit card validation service (via the web)?
> I would like to be able to verify if a credit card is valid before
> passing the email along to billing.
>
> I know I can validate the NUMBER, using mod10, but I would like to
> pass some service the number, name on card, exp date, etc and see
> if its valid, and maybe even see if a purchase of $XX would go through.
>
> Thanks for any info.
>
> Ryan
>
> --
--
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send
a message with 'unsubscribe' in the body to
[EMAIL PROTECTED]
>
>



Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]



RE: Credit card validation service?

2000-10-25 Thread Randy Adkins

There is authorized.net which I have
been reviewing and seem good.

-Original Message-
From: Ryan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 25, 2000 3:56 PM
To: CF-Talk
Subject: OT: Credit card validation service?


Anyone ever heard of a credit card validation service (via the web)?
I would like to be able to verify if a credit card is valid before
passing the email along to billing.

I know I can validate the NUMBER, using mod10, but I would like to
pass some service the number, name on card, exp date, etc and see
if its valid, and maybe even see if a purchase of $XX would go through.

Thanks for any info.

Ryan



Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]



Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]



RE: Credit card validation service?

2000-10-25 Thread ron

> Anyone ever heard of a credit card validation service (via the web)?
> I would like to be able to verify if a credit card is valid before
> passing the email along to billing.
>
> I know I can validate the NUMBER, using mod10, but I would like to
> pass some service the number, name on card, exp date, etc and see
> if its valid, and maybe even see if a purchase of $XX would go through.

Any of the card validation services can do a "Pre-Authorization"
transaction, which in effect validates that money is available, and puts a
"hold" on it. Then, you just pass billing the CC number, exp date, and
authorization number, and they do a "Force" transaction, completing the
sale. This is done all the time by companies who don't ship product
immediately... legally, you're not supposed to finalize the transaction
until you ship. I think it was Buy.com that got into a big stink on this
issue last year.

Ron Allen Hornbaker
President/CTO
Humankind Systems, Inc.
http://humankindsystems.com
mailto:[EMAIL PROTECTED]




Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]



RE: credit card validation

2000-08-17 Thread Michael Sheldon

http://www.digitalmayhem.com/code.php?action=cf&module=cccheck

Michael J. Sheldon
http://www.desertraven.com/
Make a fast friend, adopt a greyhound!


-Original Message-
From: Kiley Simpson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 17, 2000 09:56
To: [EMAIL PROTECTED]
Subject: credit card validation


Does anyone have an up to date credit card number validation tag? I don't
need to verify funds or anything, I just have to see if the credit card
(visa, mc, amex) is a potentially valid number.

Thanks.

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: credit card validation

2000-08-17 Thread ron

> Does anyone have an up to date credit card number validation
> tag? I don't
> need to verify funds or anything, I just have to see if the
> credit card
> (visa, mc, amex) is a potentially valid number.

Check out CFFORM, with CFINPUT set to do CC validation. In other words,
it's built-in to CF.

-Ron


--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: credit card validation

2000-08-17 Thread Jamie Keane

If you wanted to use Javascript there is a Javascript validator at
http://www.dejeu.com/web/tools/tech/js/forms/form_chkcard-f.asp

--
Jamie Keane
Programmer
SolutionMasters, Inc.
9111 Monroe Rd., Suite 100
Charlotte, NC  28270
www.solutionmasters.com
704.563.5559 x 228  Voice
704.849.9291  Fax
-Original Message-
From: Kiley Simpson <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, August 17, 2000 1:10 PM
Subject: credit card validation


>Does anyone have an up to date credit card number validation tag? I don't
>need to verify funds or anything, I just have to see if the credit card
>(visa, mc, amex) is a potentially valid number.
>
>Thanks.
>---
---
>Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
>To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.