Info

Represent a structure of information about payment channels which is downloaded from Dotpay.

package

Default

Methods

Initialize informations about payment channels.

__construct(array $channels, array $forms) 

Arguments

$channels

array

Data of channels

$forms

array

Data of form's fields

Return array oof Agreement class contains agreement data.

createAgreementsList() : array

Response

array

Return an array of Agreements object with agreements which are dedicated for the payment channel which has the given id.

getAgreements(integer $channelId) : array

Arguments

$channelId

integer

Channel id

Response

array

Return a structure of payment channel informations for the channel which has the given id.

getChannelInfo(integer $channelId) : \Dotpay\Resource\Channel\OneChannel
Throws
\Dotpay\Exception\Resource\Channel\NotFoundException

Thrown when doesn't exist a payment channel with the given id

Arguments

$channelId

integer

Channel id

Response

\Dotpay\Resource\Channel\OneChannel

Return saved original data of channels.

getChannels() : array

Response

array

Return saved original data of forms.

getForms() : array

Response

array

Return all agreements independly of the channel.

getUniversalAgreements() : 

Response

Properties

Data of channels

channels : array
var

Data of channels

Type(s)

array

Data of form's fields

forms : array
var

Data of form's fields

Type(s)

array