X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fchange_pay.html;h=9633e8920de739d6b14c4c41627d930f04c75f44;hb=e513d7cb331d7c7d99d1ea7b5f0a5f8e08e0d725;hp=7283cb850ea9ed8161a6f378d76ce6a9ad7433e3;hpb=32db3ad86bcf04e4f34705a396b718061d333f20;p=freeside.git
diff --git a/fs_selfservice/FS-SelfService/cgi/change_pay.html b/fs_selfservice/FS-SelfService/cgi/change_pay.html
index 7283cb850..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
!;
} ''; %>
@@ -61,6 +45,17 @@
$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,
@@ -70,5 +65,5 @@
)->html;
%>
- |
+
<%= include('footer') %>