\Heidelpay\Tests\PhpApi\Unit\PaymentMethodsDirectDebitB2CSecuredMethodTest

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()
setUp()
getMethod()
Authorize()
Capture()
Debit()
Refund()
Registration()
Reversal()
Rebill()
AuthorizeOnRegistration()
Finalize()
No public properties found
No constants found
No protected methods found
$authentification
$customerDetails
$iban
$holder
$currency
$secret
$paymentObject
N/A
No private methods found
No private properties found
N/A

Properties

$authentification

$authentification : array

Type

array — authentification parameter for heidelpay api

$customerDetails

$customerDetails : array

customer details

Type

array

$iban

$iban : string

customer mail address

Type

string — contactMail

$holder

$holder : string

customer mail address

Type

string — contactMail

$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

Methods

__construct()

__construct() 

Constructor used to set timezone to utc

setUp()

setUp() 

Set up function will create a direct debit object for each testcase

getMethod()

getMethod(string  $method) : string

Get current called method, without namespace

Parameters

string $method

Returns

string —

class and method

Authorize()

Authorize() : string

Test case for a single direct debit authorize

Returns

string —

payment reference id for the direct debit transaction

Capture()

Capture(  $referenceId = null) : string

Capture Test

Parameters

$referenceId

string

Returns

string

Debit()

Debit() : string

Test case for a single direct debit debit

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

Returns

string —

payment reference id of the direct debit refund transaction

Registration()

Registration() : string

Test case for a single direct debit debit

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

Returns

string —

payment reference id for the credit card reversal transaction

Rebill()

Rebill(  $referenceId = null) : string

Tast 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

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

Returns

string —

payment reference id of the direct debit authorisation

Finalize()

Finalize(  $referenceId) : string

Test case for a invoice finalize of a existing authorisation

Parameters

$referenceId

string payment reference id of the invoice authorisation

Returns

string —

payment reference id for the prepayment reversal transaction