Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-signifyd
Model
Config.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Signifyd\Model
;
7
8
use
Magento\Framework\App\Config\ScopeConfigInterface
;
9
use
Magento\Store\Model\ScopeInterface
;
10
16
class
Config
17
{
21
private
$scopeConfig;
22
28
public
function
__construct
(
ScopeConfigInterface
$scopeConfig)
29
{
30
$this->scopeConfig = $scopeConfig;
31
}
32
40
public
function
isActive
(
$storeId
=
null
): bool
41
{
42
$enabled = $this->scopeConfig->isSetFlag(
43
'fraud_protection/signifyd/active'
,
44
ScopeInterface::SCOPE_STORE
,
45
$storeId
46
);
47
return
$enabled;
48
}
49
59
public
function
getApiKey
(
$storeId
=
null
): string
60
{
61
$apiKey = $this->scopeConfig->getValue(
62
'fraud_protection/signifyd/api_key'
,
63
ScopeInterface::SCOPE_STORE
,
64
$storeId
65
);
66
return
$apiKey;
67
}
68
76
public
function
getApiUrl
(
$storeId
=
null
): string
77
{
78
$apiUrl = $this->scopeConfig->getValue(
79
'fraud_protection/signifyd/api_url'
,
80
ScopeInterface::SCOPE_STORE
,
81
$storeId
82
);
83
return
$apiUrl;
84
}
85
92
public
function
isDebugModeEnabled
(
$storeId
=
null
): bool
93
{
94
$debugModeEnabled = $this->scopeConfig->isSetFlag(
95
'fraud_protection/signifyd/debug'
,
96
ScopeInterface::SCOPE_STORE
,
97
$storeId
98
);
99
return
$debugModeEnabled;
100
}
101
}
Magento\Store\Model\ScopeInterface\SCOPE_STORE
const SCOPE_STORE
Definition:
ScopeInterface.php:21
$storeId
$storeId
Definition:
customer_review_with_rating.php:14
Magento\Signifyd\Model\Config\__construct
__construct(ScopeConfigInterface $scopeConfig)
Definition:
Config.php:28
Magento\Signifyd\Model\Config\isDebugModeEnabled
isDebugModeEnabled($storeId=null)
Definition:
Config.php:92
Magento\Signifyd\Model
Definition:
CaseManagementTest.php:6
Magento\Signifyd\Model\Config\getApiUrl
getApiUrl($storeId=null)
Definition:
Config.php:76
Magento\Signifyd\Model\Config\isActive
isActive($storeId=null)
Definition:
Config.php:40
Magento\Store\Model\ScopeInterface
Definition:
ScopeInterface.php:12
Magento\Signifyd\Model\Config\getApiKey
getApiKey($storeId=null)
Definition:
Config.php:59
Magento\Framework\App\ResourceConnection\Config
Definition:
Config.php:14
Magento\Framework\App\Config\ScopeConfigInterface
Definition:
ScopeConfigInterface.php:15