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',
22 <% include('/elements/error.html') %>
24 <FORM ACTION="<%popurl(1)%>process/agent_payment_gateway.html" METHOD=POST>
25 <INPUT TYPE="hidden" NAME="agentnum" VALUE="<% $agent->agentnum %>">
27 Use gateway <SELECT NAME="gatewaynum">
28 % foreach my $payment_gateway (
29 % qsearch('payment_gateway', { 'disabled' => '' } )
33 <OPTION VALUE="<% $payment_gateway->gatewaynum %>"><% $payment_gateway->gateway_module %> (<% $payment_gateway->gateway_username %>)
39 for <SELECT NAME="cardtype" MULTIPLE>
40 % foreach my $cardtype (
45 % "American Express card",
46 % "Diner's Club/Carte Blanche",
55 <OPTION VALUE="<% $cardtype %>"><% $cardtype || '(Default fallback)' %>
61 (optional) when invoice contains only items of taxclass <INPUT TYPE="text" NAME="taxclass">
64 <INPUT TYPE="submit" VALUE="Add gateway override">