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
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
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
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
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:
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
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
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
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
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)
10 matches
Mail list logo