From: Ivan Kohler Date: Wed, 27 Jan 2016 04:16:02 +0000 (-0800) Subject: respect card-types config in backend (new customer payment types / 4.x), RT#39861 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=a7699a90fb44c8a935c8f980dd8f8350ac9d2d81;p=freeside.git respect card-types config in backend (new customer payment types / 4.x), RT#39861 --- diff --git a/FS/FS/cust_payby.pm b/FS/FS/cust_payby.pm index 79a146858..9111fdff1 100644 --- a/FS/FS/cust_payby.pm +++ b/FS/FS/cust_payby.pm @@ -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;