PHP Class Pop\Payment\Adapter\UsaEpay

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

Protected Properties

Property Type Description
$fields array Transaction fields for normalization purposes
$liveUrl string Live URL
$requiredFields array Required fields
$sourceKey string Source Key
$testUrl string Test URL
$transaction array Transaction data

Public Methods

Method Description
__construct ( string $sourceKey, boolean $test = false ) : UsaEpay 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 USAEpay payment adapter object
public __construct ( string $sourceKey, boolean $test = false ) : UsaEpay
$sourceKey string
$test boolean
return UsaEpay

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

$fields protected property

Transaction fields for normalization purposes
protected array $fields
return array

$liveUrl protected property

Live URL
protected string $liveUrl
return string

$requiredFields protected property

Required fields
protected array $requiredFields
return array

$sourceKey protected property

Source Key
protected string $sourceKey
return string

$testUrl protected property

Test URL
protected string $testUrl
return string

$transaction protected property

Transaction data
protected array $transaction
return array