respect card-types config in backend (new customer payment types / 4.x), RT#39861
authorIvan Kohler <ivan@freeside.biz>
Wed, 27 Jan 2016 04:15:58 +0000 (20:15 -0800)
committerIvan Kohler <ivan@freeside.biz>
Wed, 27 Jan 2016 04:15:58 +0000 (20:15 -0800)
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;