European credit card validation

From: kaptain kernel (nospam_at_nospam.gov)
Date: 04/28/04


Date: Wed, 28 Apr 2004 16:19:12 +0100

I'm implementing a simple credit card number check on my website, in order
to trap user errors. it doesn't validate with the bank, but validates
against certain known rules (e.g. Amex always begins with xxxx)

The scripts I've found work fine for Mastercard, Visa, Diner's Club and a
few American only cards, but there's nothing on Google about European/UK
cards like Solo, Switch and Maestro.

Anyone aware of European oriented PHP credit card validation scripts?

Thanks.



Relevant Pages

  • Re: Looking for a certain regexp
    ... None of your syntax will "validate" a credit card. ... match specific mathematical formulas, and produce ...
    (comp.lang.perl.misc)
  • is this a hoax or MS authenication request asking for my credit ca
    ... blindly give out your credit card to an unsolicited email ... >their Windows Operating System. ... If you do not validate your serial number, ...
    (microsoft.public.windowsxp.general)
  • Re: [PHP] global address collection
    ... before me required the customers to enter their credit card number ... It's a simple matter to remove spaces for ... practice because we as programmers should validate, ...
    (php.general)
  • Looking for a certain regexp
    ... has onyone ever created a regexp to match common credit card formulas? ... like to validate the first number as being 4,5,3 etc. and that the scalar is ... at least 13 characters long. ... char of a scalar ... ...
    (comp.lang.perl.misc)