Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

fbPayment_AuthorizeNet Class Reference

Inheritance diagram for fbPayment_AuthorizeNet:

Inheritance graph
[legend]
List of all members.

Detailed Description

online payment processing via AuthorizeNet

Definition at line 36 of file AuthorizeNet.php.

Public Member Functions

 resultMessages ()
 fbPayment_AuthorizeNet ()
 setTestMode ($test_mode=true)
 submit ()
 getFields ()
 getFields - Retrieve the hash of the submission key/value pairs.

 addFields ($fields)
 addFields - Adds a hash to the hash of the submission key/value pairs.

 setFields ($fields)
 setFields - Sets the hash of the submission key/value pairs.

 getServer ()
 getServer - Retrieve the processor submission server address.

 setServer ($server)
 setServer - Set the processor submission server address (CHANGE AT YOUR OWN RISK).

 getPort ()
 getPort - Get the processor submission port

 setPort ($port)
 setPort - Set the processor submission port (CHANGE AT YOUR OWN RISK).

 getPath ()
 getPath - Get the processor submission path.

 setPath ($path)
 setPath - Set the processor submission path (CHANGE AT YOUR OWN RISK).

 setTestMethodType ($method_type)
 setTestMethod -

 setTestCardType ($card_type)
 setTestCardType -

 setTestResponseType ($response_type)
 setTestResponseType -

 setTestTransactionType ($transaction_type=FB_PAYMENT_TRANSACTION_TYPE_SALE)
 setTestTransactionType -

 setRequireAVS ($require_avs=true)
 setRequireAVS - Providing a true argument to this module will turn on address verification (if the processor supports it).

 isApproved ()
 isApproved - Returns true if the transaction was approved, false if was not (or undefined if it has not been submitted yet).

 isDeclined ()
 isDeclined - Returns true if the transaction was declined, false if was not declined (or undefined if it has not been submitted yet).

 getResultCode ()
 getResultCode - Returns the precise result code that the processor returned, these are normally one letter codes that don't mean much unless you understand the protocol they speak, you probably don't need this, but it's there just in case.

 getResultMessage ()
 getResultMessage - If the transaction has been submitted but was not accepted, this function will return the provided error message (if any) that the processor returned.

 getAuthorization ()
 getAuthorization - If the transaction has been submitted and accepted, this function will provide you with the authorization code that the processor returned.

 getAVSAddress ()
 getAVSAddress -

 getAVSZip ()
 getAVSZip -

 getResponse ()
 getResponse -

 getTransactionID ()
 getTransactionID - Return the transaction ID, if any, returned from the credit card processor.

 printResults ()
 printResults

 getCreditCardType ($credit_card)

Public Attributes

 $sslVersion
 $sslCert
 $sslCertPasswd
 $userAgent
 $header = 1
 $verbose = 0
 $progress = 0
 $mute = 1
 $follow_location = 0
 $timeout
 $return_transfer = 1
 $type
 $cookies
 $post_fields
 $proxy
 $proxy_port
 $proxy_user
 $proxy_password
 $_fields = array()
 $_server = false
 $_port = 443
 $_path = false
 $_test_mode = false
 $_test_method_type = false
 $_test_card_type = false
 $_test_response_type = false
 $_test_transaction_type
 $_require_avs = false
 $_approved
 $_declined
 $_result_code
 $_result_message
 $_authorization
 $_avs_address
 $_avs_zip
 $_response
 $_transaction_id


Constructor & Destructor Documentation

fbPayment_AuthorizeNet::fbPayment_AuthorizeNet  ) 
 

Constructor

Definition at line 50 of file AuthorizeNet.php.

References loadExtension().


Member Function Documentation

fbPayment::addFields fields  )  [inherited]
 

addFields - Adds a hash to the hash of the submission key/value pairs.

Parameters:
$fields 
Returns:
void

Definition at line 520 of file Payment.php.

fbPayment::getAuthorization  )  [inherited]
 

getAuthorization - If the transaction has been submitted and accepted, this function will provide you with the authorization code that the processor returned.

Definition at line 786 of file Payment.php.

Referenced by fbPayment::printResults().

fbPayment::getAVSAddress  )  [inherited]
 

getAVSAddress -

Definition at line 797 of file Payment.php.

Referenced by fbPayment::printResults().

fbPayment::getAVSZip  )  [inherited]
 

getAVSZip -

Definition at line 808 of file Payment.php.

Referenced by fbPayment::printResults().

fbPayment::getCreditCardType credit_card  )  [inherited]
 

Todo:
support FB_PAYMENT_CREDIT_CARD_TYPE_DINERS_CLUB

support FB_PAYMENT_CREDIT_CARD_TYPE_CARTE_BLANCHE

support FB_PAYMENT_CREDIT_CARD_TYPE_JAPAN_CARD

support FB_PAYMENT_CREDIT_CARD_TYPE_ENROUTE

Definition at line 865 of file Payment.php.

fbPayment::getFields  )  [inherited]
 

getFields - Retrieve the hash of the submission key/value pairs.

Returns:
hash Hash of the submission key/value pairs.

Definition at line 510 of file Payment.php.

fbPayment::getPath  )  [inherited]
 

getPath - Get the processor submission path.

Returns:
string

Definition at line 586 of file Payment.php.

fbPayment::getPort  )  [inherited]
 

getPort - Get the processor submission port

Returns:
int

Definition at line 564 of file Payment.php.

fbPayment::getResponse  )  [inherited]
 

getResponse -

Definition at line 819 of file Payment.php.

fbPayment::getResultCode  )  [inherited]
 

getResultCode - Returns the precise result code that the processor returned, these are normally one letter codes that don't mean much unless you understand the protocol they speak, you probably don't need this, but it's there just in case.

Definition at line 764 of file Payment.php.

Referenced by fbPayment::printResults().

fbPayment::getResultMessage  )  [inherited]
 

getResultMessage - If the transaction has been submitted but was not accepted, this function will return the provided error message (if any) that the processor returned.

Definition at line 775 of file Payment.php.

Referenced by fbPayment::printResults().

fbPayment::getServer  )  [inherited]
 

getServer - Retrieve the processor submission server address.

Returns:
string

Definition at line 542 of file Payment.php.

fbPayment::getTransactionID  )  [inherited]
 

getTransactionID - Return the transaction ID, if any, returned from the credit card processor.

Definition at line 830 of file Payment.php.

Referenced by fbPayment::printResults().

fbPayment::isApproved  )  [inherited]
 

isApproved - Returns true if the transaction was approved, false if was not (or undefined if it has not been submitted yet).

If both isApproved() and isDeclined() return false, then it is some other error.

Definition at line 738 of file Payment.php.

fbPayment::isDeclined  )  [inherited]
 

isDeclined - Returns true if the transaction was declined, false if was not declined (or undefined if it has not been submitted yet).

If both isApproved() and isDeclined() return false, then it is some other error.

Definition at line 753 of file Payment.php.

Referenced by fbPayment::printResults().

fbPayment::printResults  )  [inherited]
 

printResults

Definition at line 837 of file Payment.php.

References fbPayment::getAuthorization(), fbPayment::getAVSAddress(), fbPayment::getAVSZip(), fbPayment::getResultCode(), fbPayment::getResultMessage(), fbPayment::getTransactionID(), and fbPayment::isDeclined().

fbPayment_AuthorizeNet::resultMessages  ) 
 

Returns:
array

Definition at line 40 of file AuthorizeNet.php.

fbPayment::setFields fields  )  [inherited]
 

setFields - Sets the hash of the submission key/value pairs.

Parameters:
$fields 
Returns:
void

Definition at line 531 of file Payment.php.

fbPayment::setPath path  )  [inherited]
 

setPath - Set the processor submission path (CHANGE AT YOUR OWN RISK).

Parameters:
$path 
Returns:
void

Definition at line 596 of file Payment.php.

fbPayment::setPort port  )  [inherited]
 

setPort - Set the processor submission port (CHANGE AT YOUR OWN RISK).

Parameters:
$port int
Returns:
void

Definition at line 573 of file Payment.php.

fbPayment::setRequireAVS require_avs = true  )  [inherited]
 

setRequireAVS - Providing a true argument to this module will turn on address verification (if the processor supports it).

Returns:
void

Definition at line 717 of file Payment.php.

fbPayment::setServer server  )  [inherited]
 

setServer - Set the processor submission server address (CHANGE AT YOUR OWN RISK).

Parameters:
$server 
Returns:
void

Definition at line 553 of file Payment.php.

fbPayment::setTestCardType card_type  )  [inherited]
 

setTestCardType -

Parameters:
$card_type 
Returns:
void

Definition at line 654 of file Payment.php.

fbPayment::setTestMethodType method_type  )  [inherited]
 

setTestMethod -

Parameters:
$method_type 
Returns:
void

Definition at line 634 of file Payment.php.

fbPayment_AuthorizeNet::setTestMode test_mode = true  ) 
 

Most processors provide a test mode, where submitted transactions will not actually be charged or added to your batch, calling this function with a true argument will turn that mode on if the processor supports it, or generate a fatal error if the processor does not support a test mode (which is probably better than accidentally making real charges).

Reimplemented from fbPayment.

Definition at line 63 of file AuthorizeNet.php.

fbPayment::setTestResponseType response_type  )  [inherited]
 

setTestResponseType -

Returns:
void

Definition at line 677 of file Payment.php.

fbPayment::setTestTransactionType transaction_type = FB_PAYMENT_TRANSACTION_TYPE_SALE  )  [inherited]
 

setTestTransactionType -

Returns:
void

Definition at line 696 of file Payment.php.

fbPayment_AuthorizeNet::submit  ) 
 

Submit the transaction to the processor for completion.

Todo:
use $required_fields_cc instead

implement:

Reimplemented from fbPayment.

Definition at line 74 of file AuthorizeNet.php.


The documentation for this class was generated from the following file:
Generated on Fri Mar 19 12:52:32 2004 for Freebeer by doxygen 1.3.6-20040222