X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpayby.pm;h=e223a050feea1883de5c116a8fa26bc02fceca2b;hb=786d21e09d1f11c8976a8d45ef734d2d0a100ee7;hp=bee787c655e477905f950fbd8748350a31903d54;hpb=fb4ab1073f0d15d660c6cdc4e07afebf68ef3924;p=freeside.git diff --git a/FS/FS/payby.pm b/FS/FS/payby.pm index bee787c65..e223a050f 100644 --- a/FS/FS/payby.pm +++ b/FS/FS/payby.pm @@ -82,6 +82,13 @@ tie %hash, 'Tie::IxHash', payname => 'Check', longname => 'Billing', }, + 'PPAL' => { + tinyname => 'PayPal', + shortname => 'PayPal', + longname => 'PayPal', + cust_main => '', #not yet a customer type, but could be once we can do + # invoice presentment via paypal + }, 'PREP' => { tinyname => 'prepaid card', shortname => 'Prepaid card', @@ -124,6 +131,12 @@ tie %hash, 'Tie::IxHash', longname => 'Electronic Debit', cust_main => '', #not a customer type }, + 'WIRE' => { + tinyname => 'Wire', + shortname => 'Wire transfer', + longname => 'Wire transfer', + cust_main => '', #not a customer type + }, 'COMP' => { tinyname => 'comp', shortname => 'Complimentary', @@ -163,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; @@ -190,6 +208,7 @@ sub longname { 'CARD' => 'CC', 'CHEK' => 'ECHECK', 'MCRD' => 'CC', + 'PPAL' => 'PAYPAL', ); sub payby2bop {