Properties

$post

$post : \Heidelpay\PhpApi\ParameterGroups\PostParameterGroup

Post

Type

\Heidelpay\PhpApi\ParameterGroups\PostParameterGroup

$shop

$shop : \Heidelpay\PhpApi\ParameterGroups\ShopParameterGroup

ShopParameterGroup

Type

\Heidelpay\PhpApi\ParameterGroups\ShopParameterGroup

$shopmodule

$shopmodule : \Heidelpay\PhpApi\ParameterGroups\ShopmoduleParameterGroup

ShopmoduleParameterGroup

Type

\Heidelpay\PhpApi\ParameterGroups\ShopmoduleParameterGroup

Methods

toJson()

toJson(integer  $options) : string

Returns a json representation of itself.

Parameters

integer $options

Returns

string

jsonSerialize()

jsonSerialize() 

__construct()

__construct(array  $rawResponse = null) 

The constructor will take a given response in post format and convert it to a response object

Parameters

array $rawResponse

splitArray()

splitArray(array  $rawResponse) : \Heidelpay\PhpApi\Response

Splits post array parameters and converts it to a response object

Parameters

array $rawResponse

Returns

\Heidelpay\PhpApi\Response

isSuccess()

isSuccess() : boolean

Response was successfull

Returns

boolean

isPending()

isPending() : boolean

Response is pending

Returns

boolean

isError()

isError() : boolean

Response has an error

Returns

boolean

getError()

getError() : array

Get the error code and message

Returns

array —

error code and message

getPaymentReferenceId()

getPaymentReferenceId() : string

Get payment reference id or uniqe id

Returns

string —

payment uniqe id

getPaymentFormUrl()

getPaymentFormUrl() : string

Payment from url

Used to create the payment form. In case of credit/debit card it will be the iframe url.

Throws

\Heidelpay\PhpApi\Exceptions\PaymentFormUrlException

Returns

string —

PaymentFormUrl

verifySecurityHash()

verifySecurityHash(string  $secret = null, string  $identificationTransactionId = null) : boolean

Verify that the response secret hash matches the one given by initial request

A mismatch can be a indication, that someone tries to send fake payment response to your system. Please verify the source of the response. If it is a legal one, it can be some kind of misconfiguration.

Parameters

string $secret

your application's secret hash

string $identificationTransactionId

basket or order reference id

Throws

\Exception

Returns

boolean