Lee Lawrence <LeeL@aspin.co.uk>, Neale Banks <neale@lowendale.com.au> and
Max Becker <Max.Becker@firstgate.com> contributed support for additional card
types. Lee also contributed a working test.pl. Alexandr Ciornii
Lee Lawrence <LeeL@aspin.co.uk>, Neale Banks <neale@lowendale.com.au> and
Max Becker <Max.Becker@firstgate.com> contributed support for additional card
types. Lee also contributed a working test.pl. Alexandr Ciornii
=head1 COPYRIGHT AND LICENSE
Copyright (C) 1995,1996,1997 Jon Orwant
Copyright (C) 2001-2006 Ivan Kohler
=head1 COPYRIGHT AND LICENSE
Copyright (C) 1995,1996,1997 Jon Orwant
Copyright (C) 2001-2006 Ivan Kohler
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.8.8 or,
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.8.8 or,
return "Discover card"
if $number =~ /^30[0-5][\dx]{11}([\dx]{2})?$/o #diner's: 300-305
|| $number =~ /^3095[\dx]{10}([\dx]{2})?$/o #diner's: 3095
return "Discover card"
if $number =~ /^30[0-5][\dx]{11}([\dx]{2})?$/o #diner's: 300-305
|| $number =~ /^3095[\dx]{10}([\dx]{2})?$/o #diner's: 3095
|| $number =~ /^6011[\dx]{12}$/o
|| $number =~ /^64[4-9][\dx]{13}$/o
|| $number =~ /^65[\dx]{14}$/o
|| ( $number =~ /^62[24-68][\dx]{13}$/o && uc($Country) ne 'CN' ) #CUP
|| $number =~ /^6011[\dx]{12}$/o
|| $number =~ /^64[4-9][\dx]{13}$/o
|| $number =~ /^65[\dx]{14}$/o
|| ( $number =~ /^62[24-68][\dx]{13}$/o && uc($Country) ne 'CN' ) #CUP