From feef0e4c2b4bd6b776b25f5a1bd6fdbf63fd08b2 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 17 Aug 2005 22:23:46 +0000 Subject: infrastructure for easier schema changes, and: add payment_gateway, payment_gateway_option and agent_payment_gateway tables, add paystart_month, paystart_year, payissue and payip fields to cust_main, add preliminary gateway and gateway override editing to web UI, use payment gateway override when processing payments (card type, not taxclass yet) --- httemplate/browse/payment_gateway.html | 70 ++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 httemplate/browse/payment_gateway.html (limited to 'httemplate/browse/payment_gateway.html') diff --git a/httemplate/browse/payment_gateway.html b/httemplate/browse/payment_gateway.html new file mode 100644 index 000000000..bb7f31514 --- /dev/null +++ b/httemplate/browse/payment_gateway.html @@ -0,0 +1,70 @@ +<% + + my %search; + if ( $cgi->param('showdisabled') ) { + %search = (); + } else { + %search = ( 'disabled' => '' ); + } + +%> +<%= header('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 %> + <%= !$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} %>
+ + + +<% } %> + + + + + -- cgit v1.2.1