PHP 클래스 Pop\Payment\Adapter\AbstractAdapter

저자: Nick Sagona, III ([email protected])
상속: implements Pop\Payment\Adapter\AdapterInterface
파일 보기 프로젝트 열기: nicksagona/PopPHP

보호된 프로퍼티들

프로퍼티 타입 설명
$approved boolean Boolean flag for approved transaction
$declined boolean Boolean flag for declined transaction
$error boolean Boolean flag for error transaction
$fields array Transaction fields for normalization purposes
$message string Response message
$requiredFields array Required fields
$response string Response string
$responseCode string Response code
$responseCodes array Response codes
$test boolean Boolean flag to use test environment or not
$transaction array Transaction data

공개 메소드들

메소드 설명
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 the required transaction data is valid
send ( boolean $verifyPeer = true ) : mixed Send transaction
set ( array | string $data, string $value = null ) : mixed Set transaction data

보호된 메소드들

메소드 설명
filterCardNum ( string $ccNum ) : string Filter the card num to remove dashes or spaces
filterExpDate ( string $date, integer $length = 4 ) : string Filter the exp date
validate ( ) : boolean Validate that the required transaction data is set

메소드 상세

filterCardNum() 보호된 메소드

Filter the card num to remove dashes or spaces
protected filterCardNum ( string $ccNum ) : string
$ccNum string
리턴 string

filterExpDate() 보호된 메소드

Filter the exp date
protected filterExpDate ( string $date, integer $length = 4 ) : string
$date string
$length integer
리턴 string

getCode() 공개 메소드

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

getMessage() 공개 메소드

Get response message
public getMessage ( ) : integer
리턴 integer

getResponse() 공개 메소드

Get raw response
public getResponse ( ) : string
리턴 string

getResponseCode() 공개 메소드

Get response code
public getResponseCode ( ) : string
리턴 string

getResponseCodes() 공개 메소드

Get response codes
public getResponseCodes ( ) : array
리턴 array

isApproved() 공개 메소드

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

isDeclined() 공개 메소드

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

isError() 공개 메소드

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

isTest() 공개 메소드

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

isValid() 공개 메소드

Return whether the required transaction data is valid
public isValid ( ) : boolean
리턴 boolean

send() 추상적인 공개 메소드

Send transaction
abstract public send ( boolean $verifyPeer = true ) : mixed
$verifyPeer boolean
리턴 mixed

set() 공개 메소드

Set transaction data
public set ( array | string $data, string $value = null ) : mixed
$data array | string
$value string
리턴 mixed

validate() 보호된 메소드

Validate that the required transaction data is set
protected validate ( ) : boolean
리턴 boolean

프로퍼티 상세

$approved 보호되어 있는 프로퍼티

Boolean flag for approved transaction
protected bool $approved
리턴 boolean

$declined 보호되어 있는 프로퍼티

Boolean flag for declined transaction
protected bool $declined
리턴 boolean

$error 보호되어 있는 프로퍼티

Boolean flag for error transaction
protected bool $error
리턴 boolean

$fields 보호되어 있는 프로퍼티

Transaction fields for normalization purposes
protected array $fields
리턴 array

$message 보호되어 있는 프로퍼티

Response message
protected string $message
리턴 string

$requiredFields 보호되어 있는 프로퍼티

Required fields
protected array $requiredFields
리턴 array

$response 보호되어 있는 프로퍼티

Response string
protected string $response
리턴 string

$responseCode 보호되어 있는 프로퍼티

Response code
protected string $responseCode
리턴 string

$responseCodes 보호되어 있는 프로퍼티

Response codes
protected array $responseCodes
리턴 array

$test 보호되어 있는 프로퍼티

Boolean flag to use test environment or not
protected bool $test
리턴 boolean

$transaction 보호되어 있는 프로퍼티

Transaction data
protected array $transaction
리턴 array