\Heidelpay\Tests\PhpApi\Unit\PaymentMethodsPrepaymentPaymentMethodTest

Prepayment 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

Summary

Methods
Properties
Constants
__construct()
setUp()
getMethod()
Authorize()
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 : 

Type

$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 prepaymet 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 prepayment authorisation

Returns

string —

payment reference id for the prepayment authorize transaction

Reversal()

Reversal(  $referenceId) : string

Test case for a prepayment reversal of a existing authorisation

Parameters

$referenceId

string payment reference id of the prepayment authorisation

Returns

string —

payment reference id for the prepayment reversal transaction

Refund()

Refund(string  $referenceId = null) : string

Test case for prepayment refund

Parameters

string $referenceId

reference id of the prepayment to refund

Returns

string —

payment reference id of the prepayment refund transaction