projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unreverse the check for tokenized payinfo, #71291
[freeside.git]
/
FS
/
FS
/
cust_payby.pm
diff --git
a/FS/FS/cust_payby.pm
b/FS/FS/cust_payby.pm
index
facb9c8
..
e4a1d19
100644
(file)
--- a/
FS/FS/cust_payby.pm
+++ b/
FS/FS/cust_payby.pm
@@
-354,7
+354,7
@@
sub check {
or return gettext('invalid_card'); # . ": ". $self->payinfo;
my $cardtype = cardtype($payinfo);
or return gettext('invalid_card'); # . ": ". $self->payinfo;
my $cardtype = cardtype($payinfo);
- $cardtype = 'Tokenized' if $self->payinfo
!
~ /^99\d{14}$/; #token
+ $cardtype = 'Tokenized' if $self->payinfo
=
~ /^99\d{14}$/; #token
return gettext('unknown_card_type') if $cardtype eq "Unknown";
return gettext('unknown_card_type') if $cardtype eq "Unknown";