\Heidelpay\Tests\PhpApi\Unit\PaymentMethodsCreditCardPaymentMerhodTest

Credit 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 credit card information.

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

  • You are not allowed to save, store and/or process credit card information any time with your systems. Always use Heidelpay payment frame solution for a pci3 conform credit 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
$holder
$currency
$secret
$creditCartNumber
$creditCardBrand
$creditCardVerification
$creditCardExpiryMonth
$creditCardExpiryYear
$paymentObject
N/A
No private methods found
No private properties found
N/A

Properties

$authentification

$authentification : array

authentification parameter for heidelpay api

Type

array — authentification parameter for heidelpay api

$customerDetails

$customerDetails : array

customer address

Type

array — customer address

$holder

$holder : string

Account holder

Type

string — Account holder

$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

$creditCartNumber

$creditCartNumber : string

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

Type

string — credit card number

$creditCardBrand

$creditCardBrand : string

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

Type

string — credit card brand

$creditCardVerification

$creditCardVerification : string

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

Type

string — credit card verification

$creditCardExpiryMonth

$creditCardExpiryMonth : string

Credit card expiry month

Type

string — credit card verification

$creditCardExpiryYear

$creditCardExpiryYear : string

Credit card expiry year

Type

string — credit card year

Methods

__construct()

__construct() 

Constructor used to set timezone to utc

setUp()

setUp() 

Set up function will create a credit 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 credit cart registration whitout payment frame

Returns

string —

payment reference id to the credit card registration

DebitOnRegistration()

DebitOnRegistration(  $referenceId = null) : string

Test case for a credit card debit on a registration

Parameters

$referenceId

string reference id of the credit card registration

Returns

string —

payment reference id to the credit card debit transaction

AuthorizeOnRegistration()

AuthorizeOnRegistration(mixed  $referenceId = null) : string

Test case for credit card authorisation on a registration

Parameters

mixed $referenceId

Returns

string —

payment reference id of the credit card authorisation

Capture()

Capture(mixed  $referenceId = null) 

Parameters

mixed $referenceId

Refund()

Refund(  $referenceId = null) : string

Test case for credit card refund

Parameters

$referenceId

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

Returns

string —

payment reference id of the credit card refund transaction

Debit()

Debit() : string

Tast case for a single credit card debit transaction whithout payment frame

Returns

string —

payment reference id for the credit card debit transaction

Authorize()

Authorize() : string

Tast case for a single credit card authorisation whithout payment frame

Returns

string —

payment reference id for the credit card authorize transaction

Reversal()

Reversal(mixed  $referenceId = null) : string

Test case for a credit card reversal of a existing authorisation

Parameters

mixed $referenceId

Returns

string —

payment reference id for the credit card reversal transaction

Rebill()

Rebill(mixed  $referenceId = null) : string

Tast case for a credit card rebill of an existing debit or capture

Parameters

mixed $referenceId

Returns

string —

payment reference id for the credit card rebill transaction