merge webpay support in with autoselection of old realtime_bop and realtime_refund_bop
[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)
19 };
20
21
22 </%init>