Re: [PHP] Credit card checks?

2002-07-23 Thread Richard Baskett
Try this: http://www.AnalysisAndSolutions.com/code/ccvs-ph.htm Rick A sense of humor can help you over look the unattractive, tolerate the unpleasant, cope with the unexpected, and smile through the unbearable. - Moshe Waldoks From: Jas [EMAIL PROTECTED] Date: Tue, 23 Jul 2002 12:09:48

Re: [PHP] Credit card checks?

2002-07-23 Thread Kristopher Yates
You should contact Visa International Service Association to determine what constitues a valid credit card number. Just FYI, a valid format is 16 digits; ---. I believe VISA normally begins with 41 as the first two digits, however, I am not a Visa Int. agent but I am a

Re: [PHP] Credit card checks?

2002-07-23 Thread Jas
So there is no way to use some sort of string comparison to check the number then? I would have to have a merchant account? Sorry for being nieve, just never tried to work with credit card numbers etc. Jas Kristopher Yates [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP] Credit card checks?

2002-07-23 Thread Mathieu Dumoulin
Visa starts with 45 Mastercard starts with 51 =P InsaneCoder Kristopher Yates [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... You should contact Visa International Service Association to determine what constitues a valid credit card number. Just FYI, a valid

Re: [PHP] Credit card checks?

2002-07-23 Thread Jas
Yeah, I have looked at that class file and I don't want someone elses example to use, I want to build my own but have no way of knowing what makes up a valid visa number etc Jas Richard Baskett [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Try this:

Re: [PHP] Credit card checks?

2002-07-23 Thread Kristopher Yates
Correct. Your first parsing of the credit card number could be done by the web server, just to check its length and format: you could use strlen() function in PHP to count the digits, to verify it is correct. You could strip the dashes with ereg_replace(-, , $credit_card_number) then count

Re: [PHP] Credit card checks?

2002-07-23 Thread Richard Baskett
Ok how's this then? http://www.beachnet.com/~hstiles/cardtype.html Don't dismiss a good idea simply because you don't like the source. - Unknown From: Jas [EMAIL PROTECTED] Date: Tue, 23 Jul 2002 12:33:17 -0600 To: [EMAIL PROTECTED] Subject: Re: [PHP] Credit card checks? Yeah, I have

RE: [PHP] Credit card checks?

2002-07-23 Thread Jaime Bozza
PROTECTED] Subject: Re: [PHP] Credit card checks? You should contact Visa International Service Association to determine what constitues a valid credit card number. Just FYI, a valid format is 16 digits; ---. I believe VISA normally begins with 41 as the first two digits

Re: [PHP] Credit card checks?

2002-07-23 Thread Lee Doolan
Kristopher == Kristopher Yates [EMAIL PROTECTED] writes: [. . .] Kristopher I dont know about AuthorizeNet, but LinkPoint has an Kristopher API written in PHP that is supposed to be inexpensive, Kristopher and easilly integratable into any PHP apps. I

Re: [PHP] Credit card checks?

2002-07-23 Thread Analysis Solutions
On Tue, Jul 23, 2002 at 11:17:19AM -0700, Richard Baskett wrote: http://www.AnalysisAndSolutions.com/code/ccvs-ph.htm Rick, thanks for the plug. Allow me to plug it further... I updated that page just this minute. So, whomever looked at it in the past (prior to 12:00 am 24 July 2002 EST)