71513: Card tokenization [removed unneeded code]
authorJonathan Prykop <jonathan@freeside.biz>
Wed, 30 Nov 2016 16:12:04 +0000 (10:12 -0600)
committerJonathan Prykop <jonathan@freeside.biz>
Wed, 30 Nov 2016 16:14:30 +0000 (10:14 -0600)
FS/FS/cust_main/Billing_Realtime.pm

index 35c4f0d..68431fc 100644 (file)
@@ -427,8 +427,6 @@ sub realtime_bop {
       $token_error = $options{'cust_payby'}->replace;
       return $token_error if $token_error;
     }
-    return "Cannot tokenize card info"
-      if $conf->exists('no_saved_cardnumbers') && !$self->tokenized($options{'payinfo'});
   }
 
   ### 
@@ -1777,8 +1775,6 @@ sub realtime_verify_bop {
     return $token_error if $token_error;
     #important that we not replace cust_payby here,
     #because cust_payby->replace uses realtime_verify_bop!
-    return "Cannot tokenize card info"
-      if $conf->exists('no_saved_cardnumbers') && !$self->tokenized($options{'payinfo'});
   }
 
   ###