Property | Type | Description | |
---|---|---|---|
$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 |
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 the required transaction data is valid | |
send ( boolean $verifyPeer = true ) : mixed | Send transaction | |
set ( array | string $data, string $value = null ) : mixed | Set transaction data |
Method | Description | |
---|---|---|
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 | |
return | string |
public getResponseCodes ( ) : array | ||
return | array |
public isApproved ( ) : boolean | ||
return | boolean |
public isDeclined ( ) : boolean | ||
return | boolean |
protected bool $approved | ||
return | boolean |
protected bool $declined | ||
return | boolean |
protected array $fields | ||
return | array |
protected bool $test | ||
return | boolean |