\Pop\Payment\AdapterAdapterInterface

Payment adapter interface

Summary

Methods
Constants
send()
getResponse()
getResponseCodes()
getCode()
getResponseCode()
getMessage()
isValid()
isTest()
isApproved()
isDeclined()
isError()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

send()

send(boolean  $verifyPeer = true) : mixed

Send transaction

Parameters

boolean $verifyPeer

Throws

\Pop\Payment\Adapter\Exception

Returns

mixed

getResponse()

getResponse() : string

Get raw response

Returns

string

getResponseCodes()

getResponseCodes() : array

Get response codes

Returns

array

getCode()

getCode(string  $key) : string

Get specific response code from a field in the array

Parameters

string $key

Returns

string

getResponseCode()

getResponseCode() : string

Get response code

Returns

string

getMessage()

getMessage() : integer

Get response message

Returns

integer

isValid()

isValid() : boolean

Return whether transaction data is valid

Returns

boolean

isTest()

isTest() : boolean

Return whether currently set to test environment

Returns

boolean

isApproved()

isApproved() : boolean

Return whether the transaction is approved

Returns

boolean

isDeclined()

isDeclined() : boolean

Return whether the transaction is declined

Returns

boolean

isError()

isError() : boolean

Return whether the transaction is an error

Returns

boolean