PHP Class Pop\Payment\Adapter\TrustCommerce

Author: Nick Sagona, III ([email protected])
Inheritance: extends AbstractAdapter
Show file Open project: nicksagona/PopPHP

Protected Properties

Property Type Description
$custId string Customer ID
$fields array Transaction fields for normalization purposes
$password string Password
$requiredFields array Required fields
$transaction array Transaction data
$url string URL

Public Methods

Method Description
__construct ( string $custId, string $password, boolean $test = false ) : TrustCommerce Constructor
send ( boolean $verifyPeer = true ) : void Send transaction

Protected Methods

Method Description
buildPostString ( ) : string Build the POST string
parseResponseCodes ( ) : array Parse the response codes

Method Details

__construct() public method

Method to instantiate an TrustCommerce payment adapter object
public __construct ( string $custId, string $password, boolean $test = false ) : TrustCommerce
$custId string
$password string
$test boolean
return TrustCommerce

buildPostString() protected method

Build the POST string
protected buildPostString ( ) : string
return string

parseResponseCodes() protected method

Parse the response codes
protected parseResponseCodes ( ) : array
return array

send() public method

Send transaction
public send ( boolean $verifyPeer = true ) : void
$verifyPeer boolean
return void

Property Details

$custId protected property

Customer ID
protected string $custId
return string

$fields protected property

Transaction fields for normalization purposes
protected array $fields
return array

$password protected property

Password
protected string $password
return string

$requiredFields protected property

Required fields
protected array $requiredFields
return array

$transaction protected property

Transaction data
protected array $transaction
return array

$url protected property

URL
protected string $url
return string