agent-virtualize credit card surcharge percentage, RT#72961
[freeside.git] / FS / FS / cust_pay.pm
index 86e7968..e0a7143 100644 (file)
@@ -97,6 +97,10 @@ Payment Type (See L<FS::payinfo_Mixin> for valid values)
 
 Payment Information (See L<FS::payinfo_Mixin> for data format)
 
+=item paycardtype
+
+Credit card type, if appropriate; autodetected.
+
 =item paymask
 
 Masked payinfo (See L<FS::payinfo_Mixin> for how this works)
@@ -1206,13 +1210,10 @@ sub _upgrade_data {  #class method
     }
   }
 
-  # unsuspendauto upgrade
-  # could just as easily go in cust_credit, or even cust_bill or cust_main
-  # but here works
-  if ($conf->exists('unsuspendauto') && !$conf->config('unsuspend_balance')) {
-    $conf->set('unsuspend_balance','Zero');
-    $conf->delete('unsuspendauto');
-  }
+  ###
+  # set paycardtype
+  ###
+  $class->upgrade_set_cardtype;
 
 }