\Heidelpay\Tests\PhpPaymentApi\Integration\PaymentMethodsDebitCardPaymentMethodTest

Debit card test

Connection tests can fail due to network issues and scheduled down times. 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()
getAdapterMock()
getLogger()
_before()
registration()
reregistration()
debitOnRegistration()
authorizeOnRegistration()
capture()
refund()
debit()
authorize()
reversal()
rebill()
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
$currency
$secret
$holder
$holder2
$creditCartNumber
$creditCardBrand
$creditCardVerification
$creditCardExpiryMonth
$creditCardExpiryYear
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

$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

$holder2

$holder2 : string

Used to test reregistration

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

$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() 

registration()

registration() : string

Test case for debit cart registration without payment frame

Throws

\Exception

Returns

string —

payment reference id to the credit card registration

reregistration()

reregistration(null  $referenceId = null) 

Test case for debit cart reregistration without payment frame

Parameters

null $referenceId

Throws

\Exception

debitOnRegistration()

debitOnRegistration(mixed  $referenceId = null) : string

Test case for a debit card debit on a registration

Parameters

mixed $referenceId

id of the debit card registration

Throws

\Exception

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

Throws

\Exception

Returns

string —

payment reference id of the debit card authorisation

capture()

capture(  $referenceId = null) : string

Parameters

$referenceId

string

Throws

\Exception

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

Throws

\Exception

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

Throws

\Exception

Returns

string —

payment reference id for the debit card debit transaction

authorize()

authorize() : string

Test case for a single debit card authorisation without payment frame

Throws

\Exception

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

Throws

\Exception

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

Throws

\Exception

Returns

string —

payment reference id for the debit card rebill transaction

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