X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fcust_main.pm;h=ad5b0df1f914758a467f758d822cfe82667e6d44;hp=74015de34beaab0bf8c0b3c72e7a3e93031ffe4a;hb=d01dbb663c0d58ed4294c9284106a0e46f274301;hpb=1b8f95fc90575c120f1b178e05b3fbd1da35bfc9 diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 74015de34..ad5b0df1f 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -2151,6 +2151,19 @@ sub paydate_monthyear { } } +=item payinfo_masked + +Returns a "masked" payinfo field with all but the last four characters replaced +by 'x'es. Useful for displaying credit cards. + +=cut + +sub payinfo_masked { + my $self = shift; + my $payinfo = $self->payinfo; + 'x'x(length($payinfo)-4). substr($payinfo,(length($payinfo)-4)); +} + =item invoicing_list [ ARRAYREF ] If an arguement is given, sets these email addresses as invoice recipients @@ -2844,6 +2857,8 @@ card types. No multiple currency support (probably a larger project than just this module). +payinfo_masked false laziness with cust_pay.pm and cust_refund.pm + =head1 SEE ALSO L, L, L, L