diff options
Diffstat (limited to 'httemplate/edit/process/payment_gateway.html')
-rw-r--r-- | httemplate/edit/process/payment_gateway.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/httemplate/edit/process/payment_gateway.html b/httemplate/edit/process/payment_gateway.html new file mode 100644 index 0000000..812c988 --- /dev/null +++ b/httemplate/edit/process/payment_gateway.html @@ -0,0 +1,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> |