Constants

REFERENCE_ID

REFERENCE_ID = 'http://www.heidelpay.com'

REDIRECT_URL

REDIRECT_URL = 'http://dev.heidelpay.com'

RESPONSE_URL

RESPONSE_URL = self::REDIRECT_URL . '/response'

PAYMENT_FRAME_ORIGIN

PAYMENT_FRAME_ORIGIN = self::REFERENCE_ID

CSS_PATH

CSS_PATH = self::REFERENCE_ID

TEST_AMOUNT

TEST_AMOUNT = 23.12

NAME_COMPANY

NAME_COMPANY = 'DevHeidelpay'

Properties

$logger

$logger : \Codeception\Lib\Console\Output

Type

\Codeception\Lib\Console\Output

$adapterMock

$adapterMock : \AspectMock\Proxy\InstanceProxy

Type

\AspectMock\Proxy\InstanceProxy

Methods

__construct()

__construct(null  $name = null, array  $data = array(), string  $dataName = '') 

BasePaymentMethodTest constructor.

Parameters

null $name
array $data
string $dataName

getAdapterMock()

getAdapterMock() : \AspectMock\Proxy\InstanceProxy

Returns

\AspectMock\Proxy\InstanceProxy

getLogger()

getLogger() : \Codeception\Lib\Console\Output

Returns

\Codeception\Lib\Console\Output

_before()

_before() 

request()

request() 

Request setter/getter test

response()

response() 

Response setter/getter test

adapter()

adapter() 

Adapter setter/getter test

getPaymentUrl()

getPaymentUrl() 

getPaymentUrl test

Throws

\Exception

getPaymentUrlException()

getPaymentUrlException() 

getPaymentUrl exception test

Throws

\Exception

jsonSerializeTest()

jsonSerializeTest() 

Test if jsonSerialize returns elements.

toJsonTest()

toJsonTest() 

Test to verify that toJson returns valid JSON.

responseConfigGetterAlwaysReturnsTheSameObject()

responseConfigGetterAlwaysReturnsTheSameObject() 

Test whether the config getter returns the same object in call 1 and call 2.

responseRiskInformationGetterAlwaysReturnsTheSameObject()

responseRiskInformationGetterAlwaysReturnsTheSameObject() 

Test whether the config getter returns the same object in call 1 and call 2.

getMethod()

getMethod(string  $method) : string

Get currently called method, without namespace

Parameters

string $method

Returns

string —

class and method

getTimestampString()

getTimestampString() : string

Returns

string

getPaymentObject()

getPaymentObject() : mixed

Returns

mixed

log()

log(  $message) 

Writes a message to the console.

Parameters

$message

success()

success() 

logDataToDebug()

logDataToDebug(mixed  $result = null) 

Print debug data to codecept console (codecept run integration --debug) Pass result data if send has been called manually.

Parameters

mixed $result