X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpayby.pm;h=e223a050feea1883de5c116a8fa26bc02fceca2b;hb=a1a0800de7c69fe5ee414b79e408ceacd4a1c2c3;hp=bee787c655e477905f950fbd8748350a31903d54;hpb=7c39be80f09665a808dd523e63f11b41b6e2024f;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 {