Class provides a special functionality for MasterPass payments.
| package |
Default |
|---|
__construct(integer $channelId, string $code, \Dotpay\Model\Configuration $config, \Dotpay\Model\Transaction $transaction, \Dotpay\Resource\Payment $paymentResource, \Dotpay\Resource\Seller $sellerResource)
integerCode number of payment channel in Dotpay system
stringShort 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
stringName 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
arrayArray with transaction parameters
stringSeller 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
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
prepareHiddenFields() : array
| Throws |
|
|---|
array
set(string $name, mixed $value) : \Dotpay\Channel\Channel
stringThe name of the value
mixedThe value to saving
\Dotpay\Channel\Channel
setChannelInfo(integer|null $channelId = null)
| Throws |
|
|---|
integer|nullCode number of payment channel in Dotpay system
setSeller(\Dotpay\Model\Seller $seller) : \Dotpay\Channel\Channel
setTitle(string $title) : \Dotpay\Channel\Channel
stringTitle which can be displayed on the channel list
\Dotpay\Channel\Channel
CODE
CASH_GROUP
TRANSFER_GROUP
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