% include("/elements/header.html",'Payment gateways', menubar(
'Main Menu' => $p,
'Agents' => $p. 'browse/agent.cgi',
)) %>
Add a new payment gateway
<% $cgi->param('showdisabled')
? do { $cgi->param('showdisabled', 0);
'( hide disabled gateways )'; }
: do { $cgi->param('showdisabled', 1);
'( show disabled gateways )'; }
%>
<% table() %>
param('showdisabled') ? 1 : 2 %>># |
Gateway |
Username |
Password |
Action |
Options |
% foreach my $payment_gateway ( qsearch( 'payment_gateway', \%search ) ) {
<% $payment_gateway->gatewaynum %> |
% if ( !$cgi->param('showdisabled') ) {
<% $payment_gateway->disabled ? 'DISABLED' : '' %> |
% }
<% $payment_gateway->gateway_module %>
(edit)
<% !$payment_gateway->disabled
? '(disable)'
: ''
%>
|
<% $payment_gateway->gateway_username %> |
- |
<% $payment_gateway->gateway_action %> |
% my %options = $payment_gateway->options;
% foreach my $option ( keys %options ) {
%
<% $option %>: |
<% $options{$option} %> |
% }
|
% }