[freeside-commits] freeside/httemplate/browse payment_gateway.html,
NONE, 1.1 agent.cgi, 1.29, 1.30
Ivan,,,
ivan at wavetail.420.am
Wed Aug 17 15:23:48 PDT 2005
- Previous message: [freeside-commits] freeside/FS/t payment_gateway.t, NONE,
1.1 payment_gateway_option.t, NONE, 1.1 option_Common.t, NONE, 1.1
- Next message: [freeside-commits] freeside/httemplate/edit payment_gateway.html,
NONE, 1.1 agent_payment_gateway.html, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail:/tmp/cvs-serv31511/httemplate/browse
Modified Files:
agent.cgi
Added Files:
payment_gateway.html
Log Message:
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)
--- NEW FILE: payment_gateway.html ---
<%
my %search;
if ( $cgi->param('showdisabled') ) {
%search = ();
} else {
%search = ( 'disabled' => '' );
}
%>
<%= header('Payment gateways', menubar(
'Main Menu' => $p,
'Agents' => $p. 'browse/agent.cgi',
)) %>
<A HREF="<%= $p %>edit/payment_gateway.html"><I>Add a new payment gateway</I></A><BR><BR>
<%= $cgi->param('showdisabled')
? do { $cgi->param('showdisabled', 0);
'( <a href="'. $cgi->self_url. '">hide disabled gateways</a> )'; }
: do { $cgi->param('showdisabled', 1);
'( <a href="'. $cgi->self_url. '">show disabled gateways</a> )'; }
%>
<%= table() %>
<TR>
<TH COLSPAN=<%= $cgi->param('showdisabled') ? 1 : 2 %>>#</TH>
<TH>Gateway</TH>
<TH>Username</TH>
<TH>Password</TH>
<TH>Action</TH>
<TH>Options</TH>
</TR>
<% foreach my $payment_gateway ( qsearch( 'payment_gateway', \%search ) ) { %>
<TR>
<TD><%= $payment_gateway->gatewaynum %></TD>
<% if ( !$cgi->param('showdisabled') ) { %>
<TD><%= $payment_gateway->disabled ? 'DISABLED' : '' %></TD>
<% } %>
<TD><%= $payment_gateway->gateway_module %>
<%= !$payment_gateway->disabled
? '<FONT SIZE="-1"> <A HREF="misc/disable-payment_gateway.cgi?'. $payment_gateway->gatewaynum.'">(disable)</A></FONT>'
: ''
%>
</TD>
<TD><%= $payment_gateway->gateway_username %></TD>
<TD> - </TD>
<TD><%= $payment_gateway->gateway_action %></TD>
<TD>
<TABLE CELLSPACING=0 CELLPADDING=0>
<% my %options = $payment_gateway->options;
foreach my $option ( keys %options ) {
%>
<TR>
<TH><%= $option %>:</TH>
<TD><%= $options{$option} %></TD>
</TR>
<% } %>
</TABLE>
</TD>
</TR>
<% } %>
</TABLE>
</BODY>
</HTML>
Index: agent.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/browse/agent.cgi,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- agent.cgi 7 Aug 2005 00:40:02 -0000 1.29
+++ agent.cgi 17 Aug 2005 22:23:46 -0000 1.30
@@ -36,6 +36,7 @@
<TH>Reports</TH>
<TH>Registration codes</TH>
<TH>Prepaid cards</TH>
+ <TH><FONT SIZE=-1>Payment Gateway Overrides</FONT></TH>
<TH><FONT SIZE=-1>Freq.</FONT></TH>
<TH><FONT SIZE=-1>Prog.</FONT></TH>
</TR>
@@ -174,6 +175,30 @@
<BR><A HREF="<%=$p%>edit/prepay_credit.cgi?agentnum=<%= $agent->agentnum %>">Generate cards</A>
</TD>
+ <TD>
+ <TABLE CELLSPACING=0 CELLPADDING=0>
+ <% foreach my $override (
+ # sort { } want taxclass-full stuff first? and default cards (empty cardtype)
+ qsearch('agent_payment_gateway', { 'agentnum' => $agent->agentnum } )
+ ) {
+ %>
+ <TR>
+ <TD>
+ <%= $override->cardtype || 'Default' %> to <%= $override->payment_gateway->gateway_module %> (<%= $override->payment_gateway->gateway_username %>)
+ <%= $override->taxclass
+ ? ' for '. $override->taxclass. ' only'
+ : ''
+ %>
+ <FONT SIZE=-1><A HREF="<%=$p%>misc/delete-agent_payment_gateway.cgi?<%= 'XXXoverridenum' %>">(delete)</A></FONT>
+ </TD>
+ </TR>
+ <% } %>
+ <TR>
+ <TD><FONT SIZE=-1><A HREF="<%=$p%>edit/agent_payment_gateway.html?agentnum=<%= $agent->agentnum %>">(add override)</A></FONT></TD>
+ </TR>
+ </TABLE>
+ </TD>
+
<TD><%= $agent->freq %></TD>
<TD><%= $agent->prog %></TD>
- Previous message: [freeside-commits] freeside/FS/t payment_gateway.t, NONE,
1.1 payment_gateway_option.t, NONE, 1.1 option_Common.t, NONE, 1.1
- Next message: [freeside-commits] freeside/httemplate/edit payment_gateway.html,
NONE, 1.1 agent_payment_gateway.html, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list