diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-11-15 03:08:29 -0600 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-11-29 05:06:03 -0600 |
commit | 868e9dd529dc43fd523a6883ee72ec9b22e11b90 (patch) | |
tree | 928760745b98c5f439412f59b44f3719d84dd56f /FS/FS/payinfo_transaction_Mixin.pm | |
parent | 995b2edc47e2285db5c2cd64ef0783f2cbc37ee8 (diff) |
71513: Card tokenization [remove_card_numbers subroutine]
Diffstat (limited to 'FS/FS/payinfo_transaction_Mixin.pm')
-rw-r--r-- | FS/FS/payinfo_transaction_Mixin.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/FS/FS/payinfo_transaction_Mixin.pm b/FS/FS/payinfo_transaction_Mixin.pm index 50659ac..6e4b511 100644 --- a/FS/FS/payinfo_transaction_Mixin.pm +++ b/FS/FS/payinfo_transaction_Mixin.pm @@ -102,7 +102,11 @@ auth, and order_number) as well as payby and payinfo sub payinfo_check { my $self = shift; - # All of these can be null, so in principle this could go in payinfo_Mixin. + my $conf = new FS::Conf; + + # allow masked payinfo if we never save card numbers + local $FS::payinfo_Mixin::ignore_masked_payinfo = + $conf->exists('no_saved_cardnumbers') ? 1 : $FS::payinfo_Mixin::ignore_masked_payinfo; $self->SUPER::payinfo_check() || $self->ut_numbern('gatewaynum') |