ho ho ho, merry XSSmas
[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
22 <% include('/elements/error.html') %>
23
24 <FORM ACTION="<%popurl(1)%>process/agent_payment_gateway.html" METHOD=POST>
25 <INPUT TYPE="hidden" NAME="agentnum" VALUE="<% $agent->agentnum %>">
26
27 Use gateway <SELECT NAME="gatewaynum">
28 % foreach my $payment_gateway (
29 %      qsearch('payment_gateway', { 'disabled' => '' } )
30 %    ) {
31 %
32
33   <OPTION VALUE="<% $payment_gateway->gatewaynum %>"><% $payment_gateway->gateway_module %> (<% $payment_gateway->gateway_username %>)
34 % } 
35
36 </SELECT>
37 <BR><BR>
38
39 for <SELECT NAME="cardtype" MULTIPLE>
40 % foreach my $cardtype (
41 %  "",
42 %  "VISA card",
43 %  "MasterCard",
44 %  "Discover card",
45 %  "American Express card",
46 %  "Diner's Club/Carte Blanche",
47 %  "enRoute",
48 %  "JCB",
49 %  "BankCard",
50 %  "Switch",
51 %  "Solo",
52 %  'ACH',
53 %) { 
54
55   <OPTION VALUE="<% $cardtype %>"><% $cardtype || '(Default fallback)' %>
56 % } 
57
58 </SELECT>
59 <BR><BR>
60
61 (optional) when invoice contains only items of taxclass <INPUT TYPE="text" NAME="taxclass">
62 <BR><BR>
63
64 <INPUT TYPE="submit" VALUE="Add gateway override">
65 </FORM>
66 </BODY>
67 </HTML>