X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpayby.pm;h=e223a050feea1883de5c116a8fa26bc02fceca2b;hb=55753aaf5b1189c06a99fe5e0791fc33316df06f;hp=30a03ddfe6f769083f063d7343e28aa684573e9f;hpb=32db3ad86bcf04e4f34705a396b718061d333f20;p=freeside.git diff --git a/FS/FS/payby.pm b/FS/FS/payby.pm index 30a03ddfe..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', @@ -106,6 +113,30 @@ tie %hash, 'Tie::IxHash', longname => 'Manual credit card', cust_main => 'BILL', #this is a payment type only, customers go to BILL... }, + 'APPL' => { + tinyname => 'apple store', + shortname => 'Apple Store', + longname => 'Apple Store', + cust_main => 'BILL', #this is a payment type only, customers go to BILL... + }, + 'ANRD' => { + tinyname => 'android market', + shortname => 'Android Market', + longname => 'Android Market', + cust_main => 'BILL', #this is a payment type only, customers go to BILL... + }, + 'EDI' => { + tinyname => 'EDI', + shortname => 'Electronic Debit', + 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', @@ -145,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; @@ -172,6 +208,7 @@ sub longname { 'CARD' => 'CC', 'CHEK' => 'ECHECK', 'MCRD' => 'CC', + 'PPAL' => 'PAYPAL', ); sub payby2bop {