\Heidelpay\PhpPaymentApi\PaymentMethodsPaymentMethodInterface

Interface for payment methods

Summary

Methods
Constants
getPaymentCode()
getBrand()
getPaymentUrl()
getAdapter()
getRequest()
getResponse()
setAdapter()
setRequest()
toJson()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getPaymentCode()

getPaymentCode() : string

Returns the payment code for the payment request.

Returns

string

getBrand()

getBrand() : string

Returns the brand for the payment method.

Returns

string

getPaymentUrl()

getPaymentUrl() : boolean|string

Get url of the used payment api

Throws

\Heidelpay\PhpPaymentApi\Exceptions\UndefinedTransactionModeException

Returns

boolean|string —

url of the payment api

setRequest()

setRequest(\Heidelpay\PhpPaymentApi\Request  $heidelpayRequest) 

Set a new payment request object

Parameters

\Heidelpay\PhpPaymentApi\Request $heidelpayRequest

toJson()

toJson(integer  $options) : string

Returns a Json representation of itself.

Parameters

integer $options

Returns

string