summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/payment_gateway.html
blob: 812c988c58c825ba04a41bb63a474c994c525e76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<% include( 'elements/process.html',
            'table'         => 'payment_gateway',
            'viewall_dir'   => 'browse',
            'args_callback' => $args_callback,
          )
%>
<%init>

die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('Configuration');

my $args_callback = sub {
  my ( $cgi, $new ) = @_;

  my @options = split(/\r?\n/, $cgi->param('gateway_options') );
  pop @options
    if scalar(@options) % 2 && $options[-1] =~ /^\s*$/;
  (@options)
};


</%init>