add (unfinished) credit card surcharge, part 1
[freeside.git] / FS / FS / part_event / Action / cust_bill_realtime_card.pm
index 471c946..1a2d046 100644 (file)
@@ -8,17 +8,13 @@ sub description {
   'Run card with a Business::OnlinePayment realtime gateway';
 }
 
-sub deprecated {
-  1;
-}
+sub deprecated { 1; }
 
 sub eventtable_hashref {
   { 'cust_bill' => 1 };
 }
 
-sub default_weight {
-  30;
-}
+sub default_weight { 30; }
 
 sub do_action {
   my( $self, $cust_bill ) = @_;
@@ -26,7 +22,8 @@ sub do_action {
   #my $cust_main = $self->cust_main($cust_bill);
   my $cust_main = $cust_bill->cust_main;
 
-  $cust_bill->realtime_card;
+  my %opt = ('cc_surcharge_from_event' => 1);
+  $cust_bill->realtime_card(%opt);
 }
 
 1;