projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e00bf14
)
fix upgrades, fix bogus "Tokenized" paycardtype, RT#71513
author
Ivan Kohler
<ivan@freeside.biz>
Thu, 26 Jan 2017 01:31:46 +0000
(17:31 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Thu, 26 Jan 2017 01:31:46 +0000
(17:31 -0800)
FS/FS/cust_payby.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_payby.pm
b/FS/FS/cust_payby.pm
index
53608cf
..
36f90df
100644
(file)
--- a/
FS/FS/cust_payby.pm
+++ b/
FS/FS/cust_payby.pm
@@
-356,8
+356,7
@@
sub check {
validate($payinfo)
or return gettext('invalid_card'); # . ": ". $self->payinfo;
- my $cardtype = cardtype($payinfo);
- $cardtype = 'Tokenized' if $self->tokenized; #token
+ my $cardtype = $self->paycardtype || cardtype($payinfo);
return gettext('unknown_card_type') if $cardtype eq "Unknown";
@@
-547,7
+546,6
@@
sub check_payinfo_cardtype {
$payinfo =~ s/\D//g;
if ( $self->tokenized($payinfo) ) {
- $self->set('paycardtype', 'Tokenized');
return '';
}