Response

Response wrapper.
implements RKD\Banklink\Response\ResponseInterface

Known subclasses

RKD\Banklink\Response\AuthResponse, RKD\Banklink\Response\PaymentResponse
Methods Summary
public
# __construct( int $status , array $responseData )
Set response status and data.
public
# wasSuccessful( )
Get boolean to know if transaction was successful.

Implementation of

public
# getStatus( )
Get transaction status.

Implementation of

public
public
# setLanguage( string $language )
Set prefered language.

Implementation of

public
# getLanguage( )
Get prefered language.

Implementation of

Constants Summary
public int STATUS_SUCCESS
Signature verified and transaction successful.
# 1
public int STATUS_ERROR
Signature not verified.
# -1
public string RESPONSE_AUTO
Automatic response value.
# 'Y'
Properties Summary
protected int $status
Response status.
# NULL
protected array $responseData
Response data.
# NULL
protected string $language
Prefered language.
# NULL
protected bool $isAutomatic
Response automatic state.
# false