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') ) {
16 <% include("/elements/header.html","$action payment gateway override for ". $agent->agent, menubar(
18 #'View all payment gateways' => $p. 'browse/payment_gateway.html',
19 'View all agents' => $p. 'browse/agent.html',
21 % if ( $cgi->param('error') ) {
23 <FONT SIZE="+1" COLOR="#ff0000">Error: <% $cgi->param('error') %></FONT>
27 <FORM ACTION="<%popurl(1)%>process/agent_payment_gateway.html" METHOD=POST>
28 <INPUT TYPE="hidden" NAME="agentnum" VALUE="<% $agent->agentnum %>">
30 Use gateway <SELECT NAME="gatewaynum">
31 % foreach my $payment_gateway (
32 % qsearch('payment_gateway', { 'disabled' => '' } )
36 <OPTION VALUE="<% $payment_gateway->gatewaynum %>"><% $payment_gateway->gateway_module %> (<% $payment_gateway->gateway_username %>)
42 for <SELECT NAME="cardtype" MULTIPLE>
43 % foreach my $cardtype (
48 % "American Express card",
49 % "Diner's Club/Carte Blanche",
58 <OPTION VALUE="<% $cardtype %>"><% $cardtype || '(Default fallback)' %>
64 (optional) when invoice contains only items of taxclass <INPUT TYPE="text" NAME="taxclass">
67 <INPUT TYPE="submit" VALUE="Add gateway override">