respect card-types config in backend (new customer payment types / 4.x), RT#39861
[freeside.git] / FS / FS / cust_payby.pm
index 79a1468..9111fdf 100644 (file)
@@ -496,6 +496,8 @@ sub check {
 sub check_payinfo_cardtype {
   my $self = shift;
 
+  return '' unless $self->payby =~ /^(CARD|CHEK)$/;
+
   my $payinfo = $self->payinfo;
   $payinfo =~ s/\D//g;