X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fchange_pay.html;h=9633e8920de739d6b14c4c41627d930f04c75f44;hb=452b1135adcffac04acc10ead2bff1d3a280ca2b;hp=2bea9550bf83b3eebb21a5b0645d89c474d92586;hpb=8e219ac3d60ba254c9bbc40adfeb2ebe40fd2b5f;p=freeside.git
diff --git a/fs_selfservice/FS-SelfService/cgi/change_pay.html b/fs_selfservice/FS-SelfService/cgi/change_pay.html
index 2bea9550b..9633e8920 100644
--- a/fs_selfservice/FS-SelfService/cgi/change_pay.html
+++ b/fs_selfservice/FS-SelfService/cgi/change_pay.html
@@ -1,22 +1,6 @@
-
MyAccount
-
-
-MyAccount
<%= $url = "$selfurl?session=$session_id;action="; ''; %>
-<%= include('myaccount_menu') %>
-
-Change payment information
+<%= include('header', 'Change payment information') %>
+
<%= if ( $error ) {
$OUT .= qq!Error: $error
!;
} ''; %>
@@ -51,15 +35,27 @@
'LECB' => qq/Phone Bill Billing/,
'BILL' => qq/Billing/,
'COMP' => qq/Complimentary/,
+ 'PREP' => qq/Prepaid Card/,
'PREPAY' => qq/Prepaid Card/,
);
tie my %options, 'Tie::IxHash', ();
- foreach my $payby_option ( @paybys ) {
+ foreach my $payby_option ( grep { exists( $payby_index{$_} ) } @paybys ) {
$options{$payby_option} = $payby_index{$payby_option};
}
$options{$payby} = $payby_index{$payby}
unless exists($options{$payby});
+ #don't want to show multiple "Credit card" or "Check" options
+ my %paybyremove = (
+ 'CARD' => 'DCRD',
+ 'DCRD' => 'CARD',
+ 'CHEK' => 'DCHK',
+ 'DCHK' => 'CHEK',
+ );
+ delete( $options{ $paybyremove{$payby} } );
+ delete $options{'DCRD'} unless $payby eq 'DCRD' || ! exists $options{'CARD'};
+ delete $options{'DCHK'} unless $payby eq 'DCHK' || ! exists $options{'CHEK'};
+
HTML::Widgets::SelectLayers->new(
options => \%options,
selected_layer => $payby,
@@ -69,5 +65,5 @@
)->html;
%>
- |
+
<%= include('footer') %>