RT# 82949 - changes section name from fees to pricing, better opiton
[freeside.git] / httemplate / edit / process / payment_gateway.html
1 <% include( 'elements/process.html',
2             'table'         => 'payment_gateway',
3             'viewall_dir'   => 'browse',
4             'args_callback' => $args_callback,
5           )
6 %>
7 <%init>
8
9 die "access denied"
10   unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
11
12 my $args_callback = sub {
13   my ( $cgi, $new ) = @_;
14
15   my @options = split(/\r?\n/, $cgi->param('gateway_options') );
16   pop @options
17     if scalar(@options) % 2 && $options[-1] =~ /^\s*$/;
18   @options = ( {} ) if !@options;
19   (@options)
20 };
21
22
23 </%init>