Will things ever be the same again?
[freeside.git] / httemplate / edit / agent_payment_gateway.html
1 %
2 %
3 %$cgi->param('agentnum') =~ /(\d+)$/ or die "illegal agentnum";
4 %my $agent = qsearchs('agent', { 'agentnum' => $1 } );
5 %die "agentnum $1 not found" unless $agent;
6 %
7 %#my @agent_payment_gateway;
8 %if ( $cgi->param('error') ) {
9 %}
10 %
11 %my $action = 'Add';
12 %
13 %
14
15
16 <% include("/elements/header.html","$action payment gateway override for ". $agent->agent,  menubar(
17   'Main Menu' => $p,
18   #'View all payment gateways' => $p. 'browse/payment_gateway.html',
19   'View all agents' => $p. 'browse/agent.html',
20 )) %>
21 % if ( $cgi->param('error') ) { 
22
23 <FONT SIZE="+1" COLOR="#ff0000">Error: <% $cgi->param('error') %></FONT>
24 % } 
25
26
27 <FORM ACTION="<%popurl(1)%>process/agent_payment_gateway.html" METHOD=POST>
28 <INPUT TYPE="hidden" NAME="agentnum" VALUE="<% $agent->agentnum %>">
29
30 Use gateway <SELECT NAME="gatewaynum">
31 % foreach my $payment_gateway (
32 %      qsearch('payment_gateway', { 'disabled' => '' } )
33 %    ) {
34 %
35
36   <OPTION VALUE="<% $payment_gateway->gatewaynum %>"><% $payment_gateway->gateway_module %> (<% $payment_gateway->gateway_username %>)
37 % } 
38
39 </SELECT>
40 <BR><BR>
41
42 for <SELECT NAME="cardtype" MULTIPLE>
43 % foreach my $cardtype (
44 %  "",
45 %  "VISA card",
46 %  "MasterCard",
47 %  "Discover card",
48 %  "American Express card",
49 %  "Diner's Club/Carte Blanche",
50 %  "enRoute",
51 %  "JCB",
52 %  "BankCard",
53 %  "Switch",
54 %  "Solo",
55 %  'ACH',
56 %) { 
57
58   <OPTION VALUE="<% $cardtype %>"><% $cardtype || '(Default fallback)' %>
59 % } 
60
61 </SELECT>
62 <BR><BR>
63
64 (optional) when invoice contains only items of taxclass <INPUT TYPE="text" NAME="taxclass">
65 <BR><BR>
66
67 <INPUT TYPE="submit" VALUE="Add gateway override">
68 </FORM>
69 </BODY>
70 </HTML>