unreverse the check for tokenized payinfo, #71291
[freeside.git] / FS / FS / cust_main.pm
index bd46307..8e2fa19 100644 (file)
@@ -1967,7 +1967,7 @@ sub check {
       or return gettext('invalid_card'); # . ": ". $self->payinfo;
 
     my $cardtype = cardtype($payinfo);
-    $cardtype = 'Tokenized' if $self->payinfo !~ /^99\d{14}$/; # token
+    $cardtype = 'Tokenized' if $self->payinfo =~ /^99\d{14}$/; # token
 
     return gettext('unknown_card_type') if $cardtype eq 'Unknown';