Difference between revisions of "Freeside:3:Documentation:Developer/FS/payinfo transaction Mixin"

From Freeside
Jump to: navigation, search
m (Edit via perl MediaWiki framework (1.13))
 
m (Edit via perl MediaWiki framework (1.13))
 
Line 6: Line 6:
  
 
==DESCRIPTION==
 
==DESCRIPTION==
This is a mixin class for records that represent transactions: that contain payinfo and paybatch. Currently FS::cust_pay and FS::cust_refund
+
This is a mixin class for records that represent transactions: that contain payinfo and realtime result fields (gatewaynum, processor, authorization, order_number). Currently FS::cust_pay, FS::cust_refund, and FS::cust_pay_void.
  
 
==METHODS==
 
==METHODS==
Line 13: Line 13:
 
; payby_name
 
; payby_name
 
:Returns a name for the payby field.
 
:Returns a name for the payby field.
; gatewaynum
+
; payinfo_check
:Returns a gatewaynum for the processing gateway.
+
:Checks the validity of the realtime payment fields (gatewaynum, processor, auth, and order_number) as well as payby and payinfo
; processor
 
:Returns a name for the processing gateway.
 
; authorization
 
:Returns a name for the processing gateway.
 
; order_number
 
:Returns a name for the processing gateway.
 
  
 
==SEE ALSO==
 
==SEE ALSO==
 
[[Freeside:3:Documentation:Developer/FS/payinfo Mixin|FS::payinfo_Mixin]]
 
[[Freeside:3:Documentation:Developer/FS/payinfo Mixin|FS::payinfo_Mixin]]

Latest revision as of 14:37, 27 June 2014

NAME

FS::payinfo_transaction_Mixin - Mixin class for records in tables that represent transactions.

SYNOPSIS

package FS::some_table; use vars qw(@ISA); @ISA = qw( FS::payinfo_transaction_Mixin FS::Record );

DESCRIPTION

This is a mixin class for records that represent transactions: that contain payinfo and realtime result fields (gatewaynum, processor, authorization, order_number). Currently FS::cust_pay, FS::cust_refund, and FS::cust_pay_void.

METHODS

cust_main
Returns the parent customer object (see FS::cust_main).
payby_name
Returns a name for the payby field.
payinfo_check
Checks the validity of the realtime payment fields (gatewaynum, processor, auth, and order_number) as well as payby and payinfo

SEE ALSO

FS::payinfo_Mixin