projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix cust_main-require_address2 vs cust_location, RT#41184
[freeside.git]
/
FS
/
FS
/
cust_payby.pm
diff --git
a/FS/FS/cust_payby.pm
b/FS/FS/cust_payby.pm
index
a686242
..
030aed6
100644
(file)
--- a/
FS/FS/cust_payby.pm
+++ b/
FS/FS/cust_payby.pm
@@
-19,6
+19,7
@@
sub nohistory_fields { ('payinfo', 'paycvv'); }
our $ignore_expired_card = 0;
our $ignore_banned_card = 0;
our $ignore_invalid_card = 0;
our $ignore_expired_card = 0;
our $ignore_banned_card = 0;
our $ignore_invalid_card = 0;
+our $ignore_cardtype = 0;
our $conf;
install_callback FS::UID sub {
our $conf;
install_callback FS::UID sub {
@@
-496,6
+497,8
@@
sub check {
sub check_payinfo_cardtype {
my $self = shift;
sub check_payinfo_cardtype {
my $self = shift;
+ return '' if $ignore_cardtype;
+
return '' unless $self->payby =~ /^(CARD|CHEK)$/;
my $payinfo = $self->payinfo;
return '' unless $self->payby =~ /^(CARD|CHEK)$/;
my $payinfo = $self->payinfo;