add (unfinished) credit card surcharge, part 1
[freeside.git] / FS / FS / part_event / Action / cust_bill_realtime_card.pm
1 package FS::part_event::Action::cust_bill_realtime_card;
2
3 use strict;
4 use base qw( FS::part_event::Action );
5
6 sub description {
7   #'Run card with a <a href="http://420.am/business-onlinepayment/">Business::OnlinePayment</a> realtime gateway';
8   'Run card with a Business::OnlinePayment realtime gateway';
9 }
10
11 sub deprecated { 1; }
12
13 sub eventtable_hashref {
14   { 'cust_bill' => 1 };
15 }
16
17 sub default_weight { 30; }
18
19 sub do_action {
20   my( $self, $cust_bill ) = @_;
21
22   #my $cust_main = $self->cust_main($cust_bill);
23   my $cust_main = $cust_bill->cust_main;
24
25   my %opt = ('cc_surcharge_from_event' => 1);
26   $cust_bill->realtime_card(%opt);
27 }
28
29 1;