Class provides a special functionality for Dotpay standard payments.
package |
Default |
---|
__construct(integer $channelId, string $code, \Dotpay\Model\Configuration $config, \Dotpay\Model\Transaction $transaction, \Dotpay\Resource\Payment $paymentResource, \Dotpay\Resource\Seller $sellerResource)
integer
Code number of payment channel in Dotpay system
string
Short string code which can be used to identify
addAgreement(\Dotpay\Resource\Channel\Agreement $agreement) : \Dotpay\Channel\Channel
canHaveInstruction() : boolean
boolean
chooseSeller()
get(string $name) : mixed
string
Name of the saved value
mixed
getAgreements() : array
array
getAllHiddenFields() : array
array
getChannelId() : integer|null
integer|null
getCHK(array $inputParameters, string $pin, array $subPayments = array()) : string
array
Array with transaction parameters
string
Seller pin to sign the control sum
array
string
getCode() : string
string
getConfig() : \Dotpay\Model\Configuration
getGroup() : string|null
string|null
getHiddenForm() : \Dotpay\Html\Container\Form
getLogo() : string|null
string|null
getName() : string|null
string|null
getScript(array $disableChanels = array()) : \Dotpay\Html\Container\Script
array
List of ids of channels which are used as separated payment channels
\Dotpay\Html\Container\Script
getSeller() : \Dotpay\Model\Seller
getTitle() : string
string
getTransaction() : \Dotpay\Model\Transaction
getViewFields() : array
They can contain aditional fields with information which are needed before continue a payment process.
array
getViewFieldsHtml() : array
array
isAvailable() : boolean
boolean
isEnabled() : boolean
boolean
isVisible() : boolean
boolean
prepareAgreements(\Dotpay\Resource\Channel\Info $channelInfo) : array
array
prepareHiddenFields() : array
Throws |
|
---|
array
set(string $name, mixed $value) : \Dotpay\Channel\Channel
string
The name of the value
mixed
The value to saving
\Dotpay\Channel\Channel
setAvailableChannelsTitle(string $availableChannelsTitle) : \Dotpay\Channel\Dotpay
string
Description of available channels option
\Dotpay\Channel\Dotpay
setChangeChannel(string $changeChannel) : \Dotpay\Channel\Dotpay
string
Description of "change channel" button
\Dotpay\Channel\Dotpay
setChannelId(integer $id) : \Dotpay\Channel\Dotpay
setChannelInfo(integer|null $channelId = null)
Throws |
|
---|
integer|null
Code number of payment channel in Dotpay system
setSelectChannelTitle(string $selectChannelTitle) : \Dotpay\Channel\Dotpay
setSeller(\Dotpay\Model\Seller $seller) : \Dotpay\Channel\Channel
setTitle(string $title) : \Dotpay\Channel\Channel
string
Title which can be displayed on the channel list
\Dotpay\Channel\Channel
CODE
CASH_GROUP
TRANSFER_GROUP
selectChannelTitle : string
var |
Description of Dotpay widget |
---|
string
changeChannel : string
var |
Description of "change channel" button |
---|
string
availableChannelsTitle : string
var |
Description of available channels option |
---|
string
code : integer
var |
Code number of payment channel in Dotpay system |
---|
integer
reqistry : array
var |
Array of values which can be set for saving some additional informations |
---|
array
config : \Dotpay\Model\Configuration
channelInfo : \Dotpay\Resource\Channel\ChannelInfo
var |
A channel info struct, downloaded from Dotpay server |
---|
\Dotpay\Resource\Channel\ChannelInfo
agreements : array
var |
An agreement struct, downloaded from Dotpay server |
---|
array
available : boolean
var |
Flag of an availability of the channel |
---|
boolean
transaction : \Dotpay\Model\Transaction
paymentResource : \Dotpay\Resource\Payment
sellerResource : \Dotpay\Resource\Seller
title : string
var |
Title which can be displayed on the channel list |
---|
string
seller : \Dotpay\Channel\Seller
var |
Object of used seller |
---|
\Dotpay\Channel\Seller