PHP Interface Pop\Payment\Adapter\AdapterInterface

Author: Nick Sagona, III ([email protected])
Exibir arquivo Open project: nicksagona/PopPHP

Public Methods

Method Description
getCode ( string $key ) : string Get specific response code from a field in the array
getMessage ( ) : integer Get response message
getResponse ( ) : string Get raw response
getResponseCode ( ) : string Get response code
getResponseCodes ( ) : array Get response codes
isApproved ( ) : boolean Return whether the transaction is approved
isDeclined ( ) : boolean Return whether the transaction is declined
isError ( ) : boolean Return whether the transaction is an error
isTest ( ) : boolean Return whether currently set to test environment
isValid ( ) : boolean Return whether transaction data is valid
send ( boolean $verifyPeer = true ) : mixed Send transaction

Method Details

getCode() public method

Get specific response code from a field in the array
public getCode ( string $key ) : string
$key string
return string

getMessage() public method

Get response message
public getMessage ( ) : integer
return integer

getResponse() public method

Get raw response
public getResponse ( ) : string
return string

getResponseCode() public method

Get response code
public getResponseCode ( ) : string
return string

getResponseCodes() public method

Get response codes
public getResponseCodes ( ) : array
return array

isApproved() public method

Return whether the transaction is approved
public isApproved ( ) : boolean
return boolean

isDeclined() public method

Return whether the transaction is declined
public isDeclined ( ) : boolean
return boolean

isError() public method

Return whether the transaction is an error
public isError ( ) : boolean
return boolean

isTest() public method

Return whether currently set to test environment
public isTest ( ) : boolean
return boolean

isValid() public method

Return whether transaction data is valid
public isValid ( ) : boolean
return boolean

send() public method

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