프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
protected filterCardNum ( string $ccNum ) : string | ||
$ccNum | string | |
리턴 | string |
public isApproved ( ) : boolean | ||
리턴 | boolean |
public isDeclined ( ) : boolean | ||
리턴 | boolean |