<% include("/elements/header.html","$action Payment gateway", menubar( 'View all payment gateways' => $p. 'browse/payment_gateway.html', )) %> <% include('/elements/error.html') %>
Gateway #<% $payment_gateway->gatewaynum || "(NEW)" %> <% ntable('#cccccc', 2, '') %> Gateway: % if ( $payment_gateway->gatewaynum ) { <% $payment_gateway->gateway_module %> % } else { % } Username: Password: Action: Options: (Name/Value pairs, one element per line)
">
<% include('/elements/footer.html') %> <%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); my $payment_gateway; if ( $cgi->param('error') ) { $payment_gateway = new FS::payment_gateway ( { map { $_, scalar($cgi->param($_)) } fields('payment_gateway') } ); } elsif ( $cgi->keywords ) { my($query) = $cgi->keywords; $query =~ /^(\d+)$/; $payment_gateway = qsearchs( 'payment_gateway', { 'gatewaynum' => $1 } ); } else { #adding $payment_gateway = new FS::payment_gateway {}; } my $action = $payment_gateway->gatewaynum ? 'Edit' : 'Add'; #my $hashref = $payment_gateway->hashref;