X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpayinfo_transaction_Mixin.pm;h=6e4b511d24be586efd40380613b50ad627109612;hb=e2a9dcac3b97254fc0a64ce3e2bf1ce582ce8162;hp=50659ac1e4ccf6e39e2ab0ace1bf34f32b96945f;hpb=3d0a1bb06b895c5be6e3f0517d355442a6b1e125;p=freeside.git diff --git a/FS/FS/payinfo_transaction_Mixin.pm b/FS/FS/payinfo_transaction_Mixin.pm index 50659ac1e..6e4b511d2 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')