3 $cgi->param('agentnum') =~ /(\d+)$/ or die "illegal agentnum";
4 my $agent = qsearchs('agent', { 'agentnum' => $1 } );
5 die "agentnum $1 not found" unless $agent;
7 #my @agent_payment_gateway;
8 if ( $cgi->param('error') ) {
15 <%= include("/elements/header.html","$action payment gateway override for ". $agent->agent, menubar(
17 #'View all payment gateways' => $p. 'browse/payment_gateway.html',
18 'View all agents' => $p. 'browse/agent.html',
21 <% if ( $cgi->param('error') ) { %>
22 <FONT SIZE="+1" COLOR="#ff0000">Error: <%= $cgi->param('error') %></FONT>
25 <FORM ACTION="<%=popurl(1)%>process/agent_payment_gateway.html" METHOD=POST>
26 <INPUT TYPE="hidden" NAME="agentnum" VALUE="<%= $agent->agentnum %>">
28 Use gateway <SELECT NAME="gatewaynum">
29 <% foreach my $payment_gateway (
30 qsearch('payment_gateway', { 'disabled' => '' } )
33 <OPTION VALUE="<%= $payment_gateway->gatewaynum %>"><%= $payment_gateway->gateway_module %> (<%= $payment_gateway->gateway_username %>)
38 for <SELECT NAME="cardtype" MULTIPLE>
39 <% foreach my $cardtype (
44 "American Express card",
45 "Diner's Club/Carte Blanche",
53 <OPTION VALUE="<%= $cardtype %>"><%= $cardtype || '(Default fallback)' %>
58 (optional) when invoice contains only items of taxclass <INPUT TYPE="text" NAME="taxclass">
61 <INPUT TYPE="submit" VALUE="Add gateway override">