Class provides a special functionality for credit card payments, realized as an one Click method.
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
addCard(\Dotpay\Model\CreditCard $card) : \Dotpay\Channel\Oc
canHaveInstruction() : boolean
boolean
chooseSeller()
createRegisterCardOption(\Dotpay\Html\Element $element) : \Dotpay\Html\Form\Label
createSelectCardList(\Dotpay\Html\Element $element) : \Dotpay\Html\Container\Div
createSelectCardOption(\Dotpay\Html\Element $element) : \Dotpay\Html\Form\Label
get(string $name) : mixed
string
Name of the saved value
mixed
getAgreements() : array
array
getAllHiddenFields() : array
array
getCard() : \Dotpay\Model\CreditCard
getCardList() : 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
getManageCardsUrl() : string
string
getName() : string|null
string|null
getSeller() : \Dotpay\Model\Seller
getSpecialAgreements() : \Dotpay\Resource\Channel\Agreement
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
string
The name of the value
mixed
The value to saving
\Dotpay\Channel\Channel
setCard(\Dotpay\Model\CreditCard $card) : \Dotpay\Channel\Oc
setChannelInfo(integer|null $channelId = null)
Throws |
|
---|
integer|null
Code number of payment channel in Dotpay system
setManageCardsDescription(string $description) : \Dotpay\Channel\Oc
setManageCardsUrl(string $url) : \Dotpay\Channel\Oc
setRegisterCardDescription(string $description) : \Dotpay\Channel\Oc
setSavedCardsDescription(string $description) : \Dotpay\Channel\Oc
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
card : \Dotpay\Model\CreditCard
cardList : array
var |
An array of all available credit cards |
---|
array
manageCardsUrl : string
var |
An URL to a place in a shop where a customer can manage saved credit cards |
---|
string
savedCardsDescription : string
var |
Description of saved cards option |
---|
string
registerCardDescription : string
var |
Description of register a new card option |
---|
string
manageCardsDescription : string
var |
Description of manage card URL |
---|
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