projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1329148
)
respect card-types config in backend (new customer payment types / 4.x), RT#39861
author
Ivan Kohler
<ivan@freeside.biz>
Wed, 27 Jan 2016 04:16:02 +0000
(20:16 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Wed, 27 Jan 2016 04:16:02 +0000
(20:16 -0800)
FS/FS/cust_payby.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_payby.pm
b/FS/FS/cust_payby.pm
index
79a1468
..
9111fdf
100644
(file)
--- 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;