Storage of basic configuration.
package |
Default |
---|
__construct(string $pluginId)
string
Name of the plugin which uses the Configuration
__set(string $name, mixed $value)
string
Name of the property
mixed
Value of the property
createFromData(\Dotpay\Provider\ConfigurationProviderInterface $provider) : \Dotpay\Model\Configuration
\Dotpay\Provider\ConfigurationProviderInterface
Provider which contains data from shop application
\Dotpay\Model\Configuration
getApi() : string
string
getBlikVisible() : boolean
boolean
getCcVisible() : boolean
boolean
getEnable() : boolean
boolean
getEnabledChannels() : \Dotpay\Model\array/null
\Dotpay\Model\array/null
getFccCurrencies() : string
string
getFccId() : integer|null
integer|null
getFccPin() : string
string
getFccVisible() : boolean
boolean
getId() : integer|null
integer|null
getInstructionVisible() : boolean
boolean
getMpVisible() : boolean
boolean
getMultimerchant() : boolean
boolean
getOcVisible() : boolean
boolean
getPassword() : \Dotpay\Model\password
\Dotpay\Model\password
getPaymentUrl() : string
string
getPaypalVisible() : boolean
boolean
getPin() : string
string
getPluginId() : string
string
getRefundsEnable() : boolean
boolean
getRenew() : boolean
boolean
getRenewDays() : integer
integer
getSeller(integer $sellerId) : \Dotpay\Model\Seller
Throws |
|
---|
integer
Seller identifier
\Dotpay\Model\Seller
getSellerUrl() : string
string
getShopIp() : string|null
string|null
getShopName() : string
string
getSurcharge() : boolean
boolean
getSurchargeAmount() : float
float
getSurchargePercent() : float
float
getTestMode() : boolean
boolean
getUsername() : string
string
getWidgetCurrencies() : string
string
getWidgetVisible() : boolean
boolean
ifOrderCanBeRenewed(\DateTime $orderAddDate) : boolean
If number of days is 0, then payment of order can be renewed always.
\DateTime
A date when an order has been placed
boolean
isCurrencyForFcc(string $currency) : boolean
string
Currency code
boolean
isCurrencyOnList(string $currency, \Dotpay\Model\string/array $list) : \Dotpay\Model\booleanean
string
Currency code
\Dotpay\Model\string/array
A string which contains a list of currency codes. Every code is separated by "," character
\Dotpay\Model\booleanean
isFccEnable() : boolean
boolean
isGatewayEnabled(string $currency) : boolean
string
Currency code
boolean
isGoodAccount() : boolean
boolean
isGoodApiData() : boolean
boolean
isOcEnable() : boolean
boolean
isWidgetEnabled(string $currency) : boolean
string
Currency code
boolean
setApi(string $api) : \Dotpay\Model\Configuration
Throws |
|
---|
string
Api version. Only "dev" is allowed
\Dotpay\Model\Configuration
setBlikVisible(boolean $blikVisible) : \Dotpay\Model\Configuration
setCcVisible(boolean $ccVisible) : \Dotpay\Model\Configuration
boolean
Flag if normal card channel is visible
\Dotpay\Model\Configuration
setEnable(boolean $enable) : \Dotpay\Model\Configuration
setFccCurrencies(string $fccCurrencies) : \Dotpay\Model\Configuration
string
List of codes of currencies for which is allowed the FCC card channel. Every code is separated by "," character
\Dotpay\Model\Configuration
setFccId(integer $fccId) : \Dotpay\Model\Configuration
Throws |
|
---|
integer
Seller id for an account which is signed to support payment by card using foreign currencies
\Dotpay\Model\Configuration
setFccPin(string $fccPin) : \Dotpay\Model\Configuration
Throws |
|
---|
string
Seller pin for an account which is signed to support payment by card using foreign currencies
\Dotpay\Model\Configuration
setFccVisible(boolean $fccVisible) : \Dotpay\Model\Configuration
boolean
Card channel for foreign currencies visible flag
\Dotpay\Model\Configuration
setId(integer $id) : \Dotpay\Model\Configuration
Throws |
|
---|
integer
Seller id
\Dotpay\Model\Configuration
setInstructionVisible(boolean $instructionVisible) : \Dotpay\Model\Configuration
boolean
Flag if payment instruction of cash or transfer channels should be visible on a shop site
\Dotpay\Model\Configuration
setMpVisible(boolean $mpVisible) : \Dotpay\Model\Configuration
boolean
Flag if MasterPass channel is visible
\Dotpay\Model\Configuration
setMultimerchant(boolean $multimerchant) : \Dotpay\Model\Configuration
boolean
Flag if multimerchant option is enabled
\Dotpay\Model\Configuration
setOcVisible(boolean $ocVisible) : \Dotpay\Model\Configuration
boolean
One Click card channel visible flag
\Dotpay\Model\Configuration
setPassword(string $password) : \Dotpay\Model\Configuration
Throws |
|
---|
string
Seller password
\Dotpay\Model\Configuration
setPaypalVisible(boolean $paypalVisible) : \Dotpay\Model\Configuration
boolean
Flag if Paypal channel is visible
\Dotpay\Model\Configuration
setPin(string $pin) : \Dotpay\Model\Configuration
Throws |
|
---|
string
Seller pin
\Dotpay\Model\Configuration
setPluginId(string $pluginId) : \Dotpay\Model\Configuration
setRefundsEnable(boolean $refundsEnable) : \Dotpay\Model\Configuration
boolean
Flag of refunds enabling from shop sites
\Dotpay\Model\Configuration
setRenew(boolean $renew) : \Dotpay\Model\Configuration
setRenewDays(\Dotpay\Model\type $renewDays) : \Dotpay\Model\Configuration
setShopName(string $shopName) : \Dotpay\Model\Configuration
setSurcharge(boolean $surcharge) : \Dotpay\Model\Configuration
boolean
Flag if special surcharge is enabled
\Dotpay\Model\Configuration
setSurchargeAmount(float $surchargeAmount) : \Dotpay\Model\Configuration
float
Amount which will be added as a surcharge
\Dotpay\Model\Configuration
setSurchargePercent(float $surchargePercent) : \Dotpay\Model\Configuration
float
Percent of value of order which will be added as a surcharge
\Dotpay\Model\Configuration
setTestMode(boolean $testMode) : \Dotpay\Model\Configuration
setUsername(string $username) : \Dotpay\Model\Configuration
Throws |
|
---|
string
Seller username
\Dotpay\Model\Configuration
setWidgetCurrencies(string $widgetCurrencies) : \Dotpay\Model\Configuration
string
List of currency codes. Every code is separated by "," character
\Dotpay\Model\Configuration
setWidgetVisible(boolean $widgetVisible) : \Dotpay\Model\Configuration
boolean
Flag if Dotpay widget is visible on a payment page
\Dotpay\Model\Configuration
SDK_VERSION
DOTPAY_SSL_URL
PAYMENT_URL_PROD
PAYMENT_URL_DEV
SELLER_URL_PROD
SELLER_URL_DEV
CALLBACK_IP
OFFICE_IP
LOCAL_IP
OC_CHANNEL
FCC_CHANNEL
CC_CHANNEL
MP_CHANNEL
BLIK_CHANNEL
PAYPAL_CHANNEL
WIDGET_CLASS_CONTAINER
CURRENCIES :
pluginId : string
var |
Id of plugin where is used SDK |
---|
string
enable : boolean
var |
Flag which inform if Dotpay payment is enabled in a shop |
---|
boolean
id : integer|null
var |
Seller id |
---|
integer|null
pin : string
var |
Seller pin |
---|
string
username : string
var |
Username of Dotpay seller dashboard |
---|
string
password : string
var |
Password of Dotpay seller dashboard |
---|
string
testMode : boolean
var |
Flag if test mode is activated |
---|
boolean
ocVisible : boolean
var |
Flag if One Click card channel is visible |
---|
boolean
fccVisible : boolean
var |
Flag if card channel for foreign currencies is visible |
---|
boolean
fccId : integer|null
var |
Seller id for an account which is signed to support payment by card using foreign currencies |
---|
integer|null
fccPin : string
var |
Seller pin for an account which is signed to support payment by card using foreign currencies |
---|
string
fccCurrencies : string
var |
Codes of currencies for which is allowed the FCC card channel. Every code is separated by "," character |
---|
string
ccVisible : boolean
var |
Flag if normal card channel is visible |
---|
boolean
mpVisible : boolean
var |
Flag if MasterPass channel is visible |
---|
boolean
blikVisible : boolean
var |
Flag if BLIK channel is visible |
---|
boolean
paypalVisible : boolean
var |
Flag if Paypal channel is visible |
---|
boolean
instructionVisible : boolean
var |
Flag if payment instruction of cash or transfer channels should be visible on a shop site |
---|
boolean
refundsEnable : boolean
var |
Flag if refunds requesting is enabled from a shop system |
---|
boolean
renew : boolean
var |
Flag if renew payments are enabled for customers |
---|
boolean
renewDays : integer
var |
Number of days, how long after creating an order should be available renew option |
---|
integer
surcharge : boolean
var |
Flag if special surcharge is enabled |
---|
boolean
surchargeAmount : float
var |
Amount which will be added as a surcharge |
---|
float
surchargePercent : float
var |
Percent of value of order which will be added as a surcharge |
---|
float
shopName : string
var |
Name of shop which is sent to Dotpay server |
---|
string
multimerchant : boolean
var |
Flag if multimerchant option is enabled |
---|
boolean
api : string
var |
Payment API version |
---|
string