\Heidelpay\Tests\PhpApi\Unit\PaymentMethodsDebitCardPaymentMerhodTest

Debit card test

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

Warning:

  • Use of the following code is only allowed with this sandbox debit card information.

  • Using this code or even parts of it with real debit card information is a violation of the payment card industry standard aka pci3.

  • You are not allowed to save, store and/or process debit card information any time with your systems. Always use Heidelpay payment frame solution for a pci3 conform debit card integration.

Summary

Methods
Properties
Constants
__construct()
setUp()
getMethod()
Registration()
DebitOnRegistration()
AuthorizeOnRegistration()
Capture()
Refund()
Debit()
Authorize()
Reversal()
Rebill()
No public properties found
No constants found
No protected methods found
$authentification
$customerDetails
$currency
$secret
$holder
$creditCartNumber
$creditCardBrand
$creditCardVerification
$creditCardExpiryMonth
$creditCardExpiryYear
$paymentObject
N/A
No private methods found
No private properties found
N/A

Properties

$authentification

$authentification : 

Type

$customerDetails

$customerDetails : array

customer address

Type

array — customer address

$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

$holder

$holder : string

Account holder

Type

string — Account holder

$creditCartNumber

$creditCartNumber : string

Debit card number Do not use real debit card information for this test. For more details read the information on top of this test class.

Type

string — debit card number

$creditCardBrand

$creditCardBrand : string

Debit card brand Do not use real debit card information for this test. For more details read the information on top of this test class.

Type

string — debit card brand

$creditCardVerification

$creditCardVerification : string

Debit card verification Do not use real debit card information for this test. For more details read the information on top of this test class.

Type

string — debit card verification

$creditCardExpiryMonth

$creditCardExpiryMonth : string

Debit card expiry month

Type

string — debit card verification

$creditCardExpiryYear

$creditCardExpiryYear : string

Debit card expiry year

Type

string — debit card year

Methods

__construct()

__construct() 

Constructor used to set timezone to utc

setUp()

setUp() 

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

getMethod()

getMethod(string  $method) : string

Get current called method, without namespace

Parameters

string $method

Returns

string —

class and method

Registration()

Registration() : string

Test case for debit cart registration whitout payment frame

Returns

string —

payment reference id to the credit card registration

DebitOnRegistration()

DebitOnRegistration(mixed  $referenceId = null) : string

Test case for a debit card debit on a registration

Parameters

mixed $referenceId

Returns

string —

payment reference id to the debit card debit transaction

AuthorizeOnRegistration()

AuthorizeOnRegistration(  $referenceId = null) : string

Test case for a debit card authorisation on a registration

Parameters

$referenceId

string reference id of the debit card registration

Returns

string —

payment reference id of the debit card authorisation

Capture()

Capture(  $referenceId = null) : string

Parameters

$referenceId

string

Returns

string

Refund()

Refund(  $referenceId = null) : string

Test case for a debit card refund

Parameters

$referenceId

string reference id of the debit card debit/capture to refund

Returns

string —

payment reference id of the debit card refund transaction

Debit()

Debit() : string

Test case for a single debit card debit transaction without payment frame

Returns

string —

payment reference id for the debit card debit transaction

Authorize()

Authorize() : string

Test case for a single debit card authorisation whithout payment frame

Returns

string —

payment reference id for the debit card authorize transaction

Reversal()

Reversal(  $referenceId = null) : string

Test case for a debit card reversal of a existing authorisation

Parameters

$referenceId

string payment reference id of the debit card authorisation

Returns

string —

payment reference id for the debit card reversal transaction

Rebill()

Rebill(string  $referenceId = null) : string

Test case for a debit card rebill of a existing debit or capture

Parameters

string $referenceId

payment reference id of the debit card debit or capture

Returns

string —

payment reference id for the debit card rebill transaction