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