Difference between revisions of "Freeside:3:Documentation:Developer/FS/payby"

From Freeside
Jump to: navigation, search
m (Edit via perl MediaWiki framework (1.13))
 
m (Edit via perl MediaWiki framework (1.13))
 
(3 intermediate revisions by the same user not shown)
Line 23: Line 23:
 
==METHODS==
 
==METHODS==
 
*  
 
*  
 +
* payment_payby
 +
Returns all values of payby that can be used by payments.
 +
 +
* payment_payby2longname
 +
Returns hash, keys are [[#payment_payby|"payment_payby"]] types, values are payby longname.
 +
 +
* payment_payby2payname
 +
Returns hash, keys are [[#payment_payby|"payment_payby"]] types, values are payby payname.
 +
  
 
==BUGS==
 
==BUGS==
Line 28: Line 37:
  
 
==SEE ALSO==
 
==SEE ALSO==
 +
==POD ERRORS==
 +
Hey! '''The above document had some coding errors, which are explained below:'''
 +
 +
; Around line 242:
 +
:Expected '=item *'
 +
; Around line 253:
 +
:Expected '=item *'
 +
; Around line 264:
 +
:Expected '=item *'

Latest revision as of 10:03, 10 April 2015

NAME

FS::payby - Object methods for payment type records

SYNOPSIS

 use FS::payby;

 #for now...

 my @payby = FS::payby->payby;

 my $bool = FS::payby->can_payby('cust_main', 'CARD');

 tie my %payby, 'Tie::IxHash', FS::payby->payby2longname

 my @cust_payby = FS::payby->cust_payby;

 tie my %payby, 'Tie::IxHash', FS::payby->cust_payby2longname

DESCRIPTION

Payment types.

METHODS

  • payment_payby

Returns all values of payby that can be used by payments.

  • payment_payby2longname

Returns hash, keys are "payment_payby" types, values are payby longname.

  • payment_payby2payname

Returns hash, keys are "payment_payby" types, values are payby payname.


BUGS

This should eventually be an actual database table, and all tables that currently have a char payby field should have a foreign key into here instead.

SEE ALSO

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 242:
Expected '=item *'
Around line 253:
Expected '=item *'
Around line 264:
Expected '=item *'