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";
my $payinfo = $self->payinfo;
my $cardtype = cardtype($payinfo);
- $cardtype = 'Tokenized' if $payinfo !~ /^99\d{14}$/;
+ $cardtype = 'Tokenized' if $payinfo =~ /^99\d{14}$/;
$self->set('paycardtype', $cardtype);
if ( $ignore_masked_payinfo and $self->mask_payinfo eq $self->payinfo ) {