summaryrefslogtreecommitdiff
path: root/FS/FS/cust_refund.pm
diff options
context:
space:
mode:
authorivan <ivan>2004-04-20 00:58:04 +0000
committerivan <ivan>2004-04-20 00:58:04 +0000
commitd01dbb663c0d58ed4294c9284106a0e46f274301 (patch)
treeb8fd6c34afe7de09916f4494a8618cca62937437 /FS/FS/cust_refund.pm
parent1b8f95fc90575c120f1b178e05b3fbd1da35bfc9 (diff)
add methods for masking credit cards, add payment info modification to self-service
Diffstat (limited to 'FS/FS/cust_refund.pm')
-rw-r--r--FS/FS/cust_refund.pm20
1 files changed, 16 insertions, 4 deletions
diff --git a/FS/FS/cust_refund.pm b/FS/FS/cust_refund.pm
index 250bd20..d60c010 100644
--- a/FS/FS/cust_refund.pm
+++ b/FS/FS/cust_refund.pm
@@ -263,15 +263,27 @@ sub check {
$self->SUPER::check;
}
-=back
+=item payinfo_masked
+
+Returns a "masked" payinfo field with all but the last four characters replaced
+by 'x'es. Useful for displaying credit cards.
-=head1 VERSION
+=cut
-$Id: cust_refund.pm,v 1.21 2003-08-05 00:20:42 khoff Exp $
+
+sub payinfo_masked {
+ my $self = shift;
+ my $payinfo = $self->payinfo;
+ 'x'x(length($payinfo)-4). substr($payinfo,(length($payinfo)-4));
+}
+
+
+=back
=head1 BUGS
-Delete and replace methods.
+Delete and replace methods. payinfo_masked false laziness with cust_main.pm
+and cust_pay.pm
=head1 SEE ALSO