summaryrefslogtreecommitdiff
path: root/FS/FS/payinfo_Mixin.pm
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-11-08 02:48:09 -0600
committerJonathan Prykop <jonathan@freeside.biz>2016-11-08 02:48:09 -0600
commit615e417b454d57a0d9f94d21ef68512b33d976eb (patch)
tree2283ca0acc902b60621dccc562da8b3392820fd9 /FS/FS/payinfo_Mixin.pm
parenteb0ec87d37ee1548e93e35e80dfad47f48cb7563 (diff)
71513: Card tokenization [tokenize for unsaved cards, bug fix to saving from cust_main]
Diffstat (limited to 'FS/FS/payinfo_Mixin.pm')
-rw-r--r--FS/FS/payinfo_Mixin.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/payinfo_Mixin.pm b/FS/FS/payinfo_Mixin.pm
index 6982834..dfcce2f 100644
--- a/FS/FS/payinfo_Mixin.pm
+++ b/FS/FS/payinfo_Mixin.pm
@@ -67,7 +67,7 @@ sub payinfo {
my($self,$payinfo) = @_;
if ( defined($payinfo) ) {
- $self->paymask($self->mask_payinfo) unless $self->paymask || $self->tokenized; #make sure old mask is set
+ $self->paymask($self->mask_payinfo) unless $self->getfield('paymask') || $self->tokenized; #make sure old mask is set
$self->setfield('payinfo', $payinfo);
$self->paymask($self->mask_payinfo) unless $self->tokenized($payinfo); #remask unless tokenizing
} else {