Properties

$responseArray

$responseArray : array

Type

array

$secret

$secret : string

Secret

The secret will be used to generate a hash using transaction id + secret. This hash can be used to verify the the payment response. Can be used for brute force protection.

Type

string — secret

Methods

_before()

_before() 

isSuccess()

isSuccess() 

isPending()

isPending() 

function test for isPending method

isError()

isError() 

function test for isError method

getError()

getError() 

function test for getError method

getPaymentReferenceId()

getPaymentReferenceId() 

function test for getPaymentReferenceID method

getPaymentFormUrl()

getPaymentFormUrl() 

function test for getPaymentFormUrl method

getPaymentFormUrlPaymentCodeException()

getPaymentFormUrlPaymentCodeException() 

PaymentFormUrlPaymentCodeException test

getPaymentFormUrlException()

getPaymentFormUrlException() 

PaymentFormUrlException test

verifySecurityHashUndefiledParameter()

verifySecurityHashUndefiledParameter() 

function test for verifySecurityHashUndefiledParameter

verifySecurityHashEmptyResponse()

verifySecurityHashEmptyResponse() 

function test for verifySecurityHashEmptyResponse

verifySecurityHashEmpty()

verifySecurityHashEmpty() 

function test for verifySecurityHash empty

verifySecurityHashValid()

verifySecurityHashValid() 

function test for verifySecurityHash valid

verifySecurityHashInvalid()

verifySecurityHashInvalid() 

function test for verifySecurityHash invalid

jsonSerializeTest()

jsonSerializeTest() 

toJsonTest()

toJsonTest() 

Test to verify that toJson returns valid JSON.

responseObjectShouldContainConnectorAccountHolder()

responseObjectShouldContainConnectorAccountHolder() 

Verify the response object contains connector account holder "Test account holder".

responseCriterionShouldContainTestValueCustomProperty()

responseCriterionShouldContainTestValueCustomProperty() 

Verify that the CriterionParameterGroup in the Response contains custom values.

staticFromJsonMethodShouldReturnANewResponseInstanceOnEmptyJsonObject()

staticFromJsonMethodShouldReturnANewResponseInstanceOnEmptyJsonObject() 

Test that checks if the static fromJson metod returns an instance of Response even when an empty JSON object is provided.

staticFromJsonMethodShouldReturnNewResponseInstanceOnValidJsonObject()

staticFromJsonMethodShouldReturnNewResponseInstanceOnValidJsonObject() 

Test that checks if the static fromJson method returns an instance of Response.

mappedJsonResponseAndToJsonRepresentationOfResponseObjectMustBeEqual()

mappedJsonResponseAndToJsonRepresentationOfResponseObjectMustBeEqual() 

Test that checks if an existing Response instance and an instance created by the fromJson mapper are matching ParameterGroup instances and their respective properies and values.

fromJsonMapperShouldThrowExceptionOnInvalidJsonString()

fromJsonMapperShouldThrowExceptionOnInvalidJsonString() 

Test that checks if a JsonParserException will be thrown when an invalid JSON string is being provided to the fromJson method.

staticFromPostMethodShouldReturnNewResponseInstanceOnEmptyArray()

staticFromPostMethodShouldReturnNewResponseInstanceOnEmptyArray() 

Test that checks if the static fromPost method returns an instance of Response.