From: Ivan Kohler Date: Sun, 19 Feb 2017 01:10:48 +0000 (-0800) Subject: 19 digit visa and discover cards X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=4fe1fd639d387e1a3d271618b35830142583c714 19 digit visa and discover cards --- diff --git a/FS/FS/cust_payby.pm b/FS/FS/cust_payby.pm index 7e4a465e7..ab3c41ce0 100644 --- a/FS/FS/cust_payby.pm +++ b/FS/FS/cust_payby.pm @@ -349,7 +349,7 @@ sub check { my $payinfo = $self->payinfo; $payinfo =~ s/\D//g; - $payinfo =~ /^(\d{13,16}|\d{8,9})$/ + $payinfo =~ /^(\d{13,19}|\d{8,9})$/ or return gettext('invalid_card'); #. ": ". $self->payinfo; $payinfo = $1; $self->payinfo($payinfo);