Properties

$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

setUp()

setUp() 

setUp sample response Object

{@inheritDoc}

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.