PaymentMethod

Informations about a payment method.

package

Default

Methods

Initialize the model.

__construct(integer $channelId, mixed $details = null, integer|null $detailsType = null) 

Arguments

$channelId

integer

Payment channel id

$details

mixed

Details of payment method

$detailsType

integer|null

Type of defails of payment method

Return a payment channel id.

getChannelId() : integer|null

Response

integer|null

Return a details of payment method.

getDetails() : mixed

Response

mixed

Return a type of defails of payment method.

getDetailsType() : integer|null

Response

integer|null

Set a payment channel id.

setChannelId(\Dotpay\Model\type $channelId) : \Dotpay\Model\PaymentMethod
Throws
\Dotpay\Exception\BadParameter\ChannelIdException

Thrown when the given channel id is incorrect

Arguments

$channelId

\Dotpay\Model\type

Payment channel id

Response

\Dotpay\Model\PaymentMethod

Set a details of payment method.

setDetails(mixed $details) : \Dotpay\Model\PaymentMethod

Arguments

$details

mixed

Details of payment method

Response

\Dotpay\Model\PaymentMethod

Set a type of defails of payment method.

setDetailsType(integer|null $type) : \Dotpay\Model\PaymentMethod

Arguments

$type

integer|null

Type of defails of payment method

Response

\Dotpay\Model\PaymentMethod

Constants

Details with credit card.

CREDIT_CARD

Properties

Payment channel id

channelId : integer|null
var

Payment channel id

Type(s)

integer|null

Details of payment method

details : mixed
var

Details of payment method

Type(s)

mixed

Type of defails of payment method

detailsType : integer|null
var

Type of defails of payment method

Type(s)

integer|null