X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fcust_payby.pm;h=36f90dfb565e818131eb9ed181708612be662585;hp=53608cf64747a070338393966c45c8d04501fa16;hb=7fe97938da9c746887cc3d4aa62399bd589995b0;hpb=e00bf149d4f7335832b0316854ccc94e171af134 diff --git a/FS/FS/cust_payby.pm b/FS/FS/cust_payby.pm index 53608cf64..36f90dfb5 100644 --- a/FS/FS/cust_payby.pm +++ b/FS/FS/cust_payby.pm @@ -356,8 +356,7 @@ sub check { validate($payinfo) or return gettext('invalid_card'); # . ": ". $self->payinfo; - my $cardtype = cardtype($payinfo); - $cardtype = 'Tokenized' if $self->tokenized; #token + my $cardtype = $self->paycardtype || cardtype($payinfo); return gettext('unknown_card_type') if $cardtype eq "Unknown"; @@ -547,7 +546,6 @@ sub check_payinfo_cardtype { $payinfo =~ s/\D//g; if ( $self->tokenized($payinfo) ) { - $self->set('paycardtype', 'Tokenized'); return ''; }