\Heidelpay\Tests\PhpPaymentApi\Integration\PaymentMethodsDirectDebitPaymentMethodTest

Direct debit Test

Connection tests can fail due to network issues and scheduled downtime. This does not have to mean that your integration is broken. Please verify the given debug information

Summary

Methods
Properties
Constants
__construct()
getAdapterMock()
getLogger()
_before()
authorize()
capture()
debit()
refund()
registration()
reregistration()
reversal()
rebill()
authorizeOnRegistration()
No public properties found
REFERENCE_ID
REDIRECT_URL
RESPONSE_URL
PAYMENT_FRAME_ORIGIN
CSS_PATH
TEST_AMOUNT
NAME_COMPANY
getMethod()
mockCurlAdapter()
getTimestampString()
arraysMatchExactly()
getPaymentObject()
log()
success()
logDataToDebug()
$authentication
$customerData
$paymentObject
$iban
$holder
$holder2
$currency
$secret
N/A
No private methods found
$logger
$adapterMock
N/A

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

$iban

$iban : string

payment account iban

Type

string

$holder

$holder : string

payment account holder

Type

string

$holder2

$holder2 : string

Used to test reregistration

Type

string — Account holder

$currency

$currency : string

Transaction currency

Type

string — currency

$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

$logger

$logger : \Codeception\Lib\Console\Output

Type

\Codeception\Lib\Console\Output

$adapterMock

$adapterMock : \AspectMock\Proxy\InstanceProxy

Type

\AspectMock\Proxy\InstanceProxy

Methods

__construct()

__construct() 

Constructor used to set timezone to utc

getAdapterMock()

getAdapterMock() : \AspectMock\Proxy\InstanceProxy

Returns

\AspectMock\Proxy\InstanceProxy

getLogger()

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

Returns

\Codeception\Lib\Console\Output

_before()

_before() 

authorize()

authorize() : string

Test case for a single direct debit authorize

Throws

\Exception

Returns

string —

payment reference id for the direct debit transaction

capture()

capture(  $referenceId = null) : string

Capture Test

Parameters

$referenceId

string

Throws

\Exception

Returns

string

debit()

debit() : string

Test case for a single direct debit debit

Throws

\Exception

Returns

string —

payment reference id for the direct debit transaction

refund()

refund(string  $referenceId = null) : string

Test case for direct debit refund

Parameters

string $referenceId

reference id of the direct debit to refund

Throws

\Exception

Returns

string —

payment reference id of the direct debit refund transaction

registration()

registration() : string

Test case for a direct debit registration

Throws

\Exception

Returns

string —

payment reference id for the direct debit transaction

reregistration()

reregistration(null  $referenceId = null) : string

Test case for a direct debit reregistration

Parameters

null $referenceId

Throws

\Exception

Returns

string —

payment reference id for the direct debit transaction

reversal()

reversal(string  $referenceId = null) : string

Test case for a direct debit reversal of a existing authorisation

Parameters

string $referenceId

payment reference id of the direct debit authorisation

Throws

\Exception

Returns

string —

payment reference id for the credit card reversal transaction

rebill()

rebill(  $referenceId = null) : string

Test case for a direct debit rebill of an existing debit or capture

Parameters

$referenceId

string payment reference id of the direct debit debit or capture

Throws

\Exception

Returns

string —

payment reference id for the direct debit rebill transaction

authorizeOnRegistration()

authorizeOnRegistration(  $referenceId = null) : string

Test case for direct debit authorisation on a registration

Parameters

$referenceId

string reference id of the direct debit registration

Throws

\Exception

Returns

string —

payment reference id of the direct debit authorisation

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