summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-02-24 08:28:14 -0800
committerIvan Kohler <ivan@freeside.biz>2017-02-24 08:28:14 -0800
commit7e67fa95effacabe5380653ccdab3957f10931c0 (patch)
tree22e4effdcb660cdde3d1460d4aaa42ace71ca405
parent312e0abaf208796c86fd25dc8519d68948808140 (diff)
fix fallout from is_tokenized optimizations preventing cards from running
-rw-r--r--FS/FS/cust_payby.pm2
-rw-r--r--FS/FS/payinfo_Mixin.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/cust_payby.pm b/FS/FS/cust_payby.pm
index ab3c41c..fd90597 100644
--- a/FS/FS/cust_payby.pm
+++ b/FS/FS/cust_payby.pm
@@ -359,7 +359,7 @@ sub check {
# see parallel checks in check_payinfo_cardtype & payinfo_Mixin::payinfo_check
my $cardtype = $self->paycardtype;
if ( $self->tokenized ) {
- $self->('is_tokenized', 'Y'); #so we don't try to do it again
+ $self->set('is_tokenized', 'Y'); #so we don't try to do it again
if ( $self->paymask =~ /^\d+x/ ) {
$cardtype = cardtype($self->paymask);
} else {
diff --git a/FS/FS/payinfo_Mixin.pm b/FS/FS/payinfo_Mixin.pm
index 3820d7b..01b2226 100644
--- a/FS/FS/payinfo_Mixin.pm
+++ b/FS/FS/payinfo_Mixin.pm
@@ -199,7 +199,7 @@ sub payinfo_check {
# see parallel checks in cust_payby::check & cust_payby::check_payinfo_cardtype
if ( $self->tokenized ) {
- $self->('is_tokenized', 'Y'); #so we don't try to do it again
+ $self->set('is_tokenized', 'Y'); #so we don't try to do it again
if ( $self->paymask =~ /^\d+x/ ) {
$self->set('paycardtype', cardtype($self->paymask));
} else {