From: ivan Date: Thu, 27 Mar 2008 21:01:23 +0000 (+0000) Subject: mask ACH info in payment history X-Git-Tag: root_of_webpay_support~797 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=9397fe6fb9a5cc112ec11f165f902a62d90f096b;p=freeside.git mask ACH info in payment history --- diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html index fa3863b13..2f05c1ae2 100644 --- a/httemplate/view/cust_main/billing.html +++ b/httemplate/view/cust_main/billing.html @@ -69,8 +69,7 @@ Billing information <% $cust_main->payname %> % } elsif ( $cust_main->payby eq 'CHEK' || $cust_main->payby eq 'DCHK') { -% my( $account, $aba ) = split('@', $cust_main->payinfo ); -% +% my( $account, $aba ) = split('@', $cust_main->paymask ); Electronic check <% $cust_main->payby eq 'CHEK' ? '(automatic)' : '(on-demand)' %> @@ -82,7 +81,7 @@ Billing information Account number - <% 'x'x(length($account)-2). substr($account,(length($account)-2)) %> + <% $account %> Account type diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html index 44a888533..5d91b239f 100644 --- a/httemplate/view/cust_main/payment_history.html +++ b/httemplate/view/cust_main/payment_history.html @@ -100,8 +100,8 @@ % my $payinfo; % if ( $payby eq 'CARD' ) { % $payinfo = $cust_pay->paymask; -% } elsif ( $payby eq 'CHEK' && $cust_pay->payinfo =~ /^(\d+)\@(\d+)$/ ) { -% $payinfo = "ABA $2, Acct# $1"; +% } elsif ( $payby eq 'CHEK' && $cust_pay->paymask =~ /^(\d+)\@(\d+)$/ ) { +% $payinfo = "ABA $2, Acct #$1"; % } else { % $payinfo = $cust_pay->payinfo; % }