X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FConf.pm;h=5fb5a272fd69feb3fbf029b3813eec025fecaa9f;hp=22e761f4a822bb6972beff6f2640ed4d24e44ec4;hb=d6741df87df9e3352d7ae47a02d0e3f46154fef9;hpb=46e04077cc22ff9d31e8e9896cbf97e31f1b0e7d diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 22e761f4a..5fb5a272f 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -584,6 +584,26 @@ my %msg_template_options = ( 'per_agent' => 1, ); +my $_gateway_name = sub { + my $g = shift; + return '' if !$g; + ($g->gateway_username . '@' . $g->gateway_module); +}; + +my %payment_gateway_options = ( + 'type' => 'select-sub', + 'options_sub' => sub { + my @gateways = qsearch({ + 'table' => 'payment_gateway', + 'hashref' => { 'disabled' => '' }, + }); + map { $_->gatewaynum, $_gateway_name->($_) } @gateways; + }, + 'option_sub' => sub { + my $gateway = FS::payment_gateway->by_key(shift); + $_gateway_name->($gateway); + }, +); #Billing (81 items) #Invoicing (50 items) @@ -1726,6 +1746,13 @@ and customer address. Include units.', }, { + 'key' => 'selfservice-payment_gateway', + 'section' => 'self-service', + 'description' => 'Force the use of this payment gateway for self-service.', + %payment_gateway_options, + }, + + { 'key' => 'selfservice-save_unchecked', 'section' => 'self-service', 'description' => 'In self-service, uncheck "Remember information" checkboxes by default (normally, they are checked by default).', @@ -2971,7 +2998,7 @@ and customer address. Include units.', # { # 'key' => 'batch-manual_approval', # 'section' => 'billing', -# 'description' => 'Allow manual batch closure, which will approve all payments that do not yet have a status. This is dangerous, but may be needed if your processor does not provide a list of approved payments.', +# 'description' => 'Allow manual batch closure, which will approve all payments that do not yet have a status. This is very dangerous.', # 'type' => 'checkbox', # }, #