From 436df4de2b0cd4442eaf37f880f0ae017debeaf5 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 20 Feb 2002 09:44:28 +0000 Subject: [PATCH] don't display full card in webinterface --- httemplate/view/cust_main.cgi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi index 34e99cf3e..8ae7ce295 100755 --- a/httemplate/view/cust_main.cgi +++ b/httemplate/view/cust_main.cgi @@ -197,9 +197,12 @@ print '
'; ; if ( $cust_main->payby eq 'CARD' ) { + my $payinfo = $cust_main->payinfo; + $payinfo = substr($payinfo,0,4). 'x'x(length($payinfo)-4); + print 'Credit card', 'Card number', - $cust_main->payinfo, '', + $payinfo, '', 'Expiration', $cust_main->paydate, '', 'Name on card', -- 2.11.0