X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpayby.pm;h=d1961a58dca25ef19c1fe669f1ac8e1203db6259;hb=3ccf7174fccb0b576a8c34838b3db4a429635483;hp=33ed425073af1bdae8e17ebcd4a57507f417801c;hpb=c683be2e0bc89b9d11dfd5454a6cd21161b752ef;p=freeside.git diff --git a/FS/FS/payby.pm b/FS/FS/payby.pm index 33ed42507..d1961a58d 100644 --- a/FS/FS/payby.pm +++ b/FS/FS/payby.pm @@ -176,6 +176,11 @@ sub realtime { # can use realtime payment facilities return $hash{$payby}->{realtime}; } +sub payby2shortname { + my $self = shift; + map { $_ => $hash{$_}->{shortname} } $self->payby; +} + sub payby2longname { my $self = shift; map { $_ => $hash{$_}->{longname} } $self->payby;