Свойство | Тип | Описание | |
---|---|---|---|
$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 getResponseCode ( ) : string | ||
Результат | string |
public getResponseCodes ( ) : array | ||
Результат | array |
public isApproved ( ) : boolean | ||
Результат | boolean |
public isDeclined ( ) : boolean | ||
Результат | boolean |
protected bool $approved | ||
Результат | boolean |
protected bool $declined | ||
Результат | boolean |
protected bool $error | ||
Результат | boolean |
protected array $fields | ||
Результат | array |
protected bool $test | ||
Результат | boolean |