diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-11-18 05:14:22 -0600 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-11-18 05:14:22 -0600 |
commit | e41cafbe7616c4f046c6161999d4577f1c918311 (patch) | |
tree | d6b07cb3b8c5504c0310c27a633d908973129e95 /FS/FS/payinfo_Mixin.pm | |
parent | 2dff574c971b18e3b3c74653e7e1376b7b57c3bb (diff) |
71513: Card tokenization [token_check]
Diffstat (limited to 'FS/FS/payinfo_Mixin.pm')
-rw-r--r-- | FS/FS/payinfo_Mixin.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/FS/FS/payinfo_Mixin.pm b/FS/FS/payinfo_Mixin.pm index 7a3dcf0..2f50312 100644 --- a/FS/FS/payinfo_Mixin.pm +++ b/FS/FS/payinfo_Mixin.pm @@ -8,7 +8,8 @@ use FS::UID qw(driver_name); use FS::Cursor; use Time::Local qw(timelocal); -use vars qw($ignore_masked_payinfo); +# allow_closed_replace only relevant to cust_pay/cust_refund, for upgrade tokenizing +use vars qw( $ignore_masked_payinfo $allow_closed_replace ); =head1 NAME @@ -214,8 +215,6 @@ sub payinfo_check { $self->payinfo($1); validate($self->payinfo) or return "Illegal credit card number"; return "Unknown card type" if $cardtype eq "Unknown"; - return "Card number not tokenized" - if $conf->exists('no_saved_cardnumbers') && !$self->tokenized; } else { $self->payinfo('N/A'); #??? re-masks card } |