\Heidelpay\Tests\PhpApi\Unit\PaymentMethodsPostFinanceEFinancePaymentMerhodTest

PostFinanceEFinance 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()
testAuthorize()
No public properties found
No constants found
No protected methods found
$SecuritySender
$UserLogin
$UserPassword
$TransactionChannel
$SandboxRequest
$nameGiven
$nameFamily
$nameCompany
$shopperId
$addressStreet
$addressState
$addressZip
$addressCity
$addressCountry
$contactMail
$currency
$secret
$paymentObject
N/A
No private methods found
No private properties found
N/A

Properties

$SecuritySender

$SecuritySender : string

SecuritySender

Type

string — SecuritySender

$UserLogin

$UserLogin : string

UserLogin

Type

string — UserLogin

$UserPassword

$UserPassword : string

UserPassword

Type

string — UserPassword

$TransactionChannel

$TransactionChannel : string

TransactionChannel

Type

string — TransactionChannel

$SandboxRequest

$SandboxRequest : string

SandboxRequest

Request will be send to Heidelpay sandbox payment system.

Type

string

$nameGiven

$nameGiven : string

Customer given name

Type

string — nameGiven

$nameFamily

$nameFamily : string

Customer family name

Type

string — nameFamily

$nameCompany

$nameCompany : string

Customer company name

Type

string — nameCompany

$shopperId

$shopperId : string

Customer id

Type

string — shopperId

$addressStreet

$addressStreet : string

customer billing address street

Type

string — addressStreet

$addressState

$addressState : string

customer billing address state

Type

string — addressState

$addressZip

$addressZip : string

customer billing address zip

Type

string — addressZip

$addressCity

$addressCity : string

customer billing address city

Type

string — addressCity

$addressCountry

$addressCountry : string

customer billing address city

Type

string — addressCity

$contactMail

$contactMail : string

customer mail address

Type

string — contactMail

$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 PostFinanceEFinance object for each testcase

getMethod()

getMethod(string  $method) : string

Get current called method, without namespace

Parameters

string $method

Returns

string —

class and method

testAuthorize()

testAuthorize() : string

Test case for a single PostFinanceEFinance authorize

Returns

string —

payment reference id for the PostFinanceEFinance authorize transaction