\Heidelpay\Tests\PhpApi\Unit\PaymentMethodsSantanderInvoicePaymentMethodTest

Invoice B2C secured 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()
Finalize()
Reversal()
Refund()
No public properties found
No constants found
No protected methods found
$authentification
$customerDetails
$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 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

Methods

__construct()

__construct() 

Constructor used to set timezone to utc

setUp()

setUp() 

Set up function will create a invoice 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 invoice authorisation

Returns

string —

payment reference id for the invoice authorize transaction

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

Reversal()

Reversal() : string

Test case for a invoice reversal of a existing authorisation

Returns

string —

payment reference id for the prepayment reversal transaction

Refund()

Refund(string  $referenceId = null) : string

Test case for invoice refund

Parameters

string $referenceId

reference id of the invoice to refund

Returns

string —

payment reference id of the invoice refund transaction