X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_event%2FAction%2Fcust_bill_realtime_card.pm;h=1a2d0463293aa79d51d7d469bf91576fbdcb4e0a;hp=471c946dc61a5be6483d90a6d266735a23c76470;hb=0f7643c1af2d909e0c3172e5bec0c01855fca1b9;hpb=9509e5bfb7f9331303153cac24d7bfecbe2ea9f1 diff --git a/FS/FS/part_event/Action/cust_bill_realtime_card.pm b/FS/FS/part_event/Action/cust_bill_realtime_card.pm index 471c946dc..1a2d04632 100644 --- a/FS/FS/part_event/Action/cust_bill_realtime_card.pm +++ b/FS/FS/part_event/Action/cust_bill_realtime_card.pm @@ -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;