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-braintree
Model
Adapter
BraintreeAdapterFactory.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Braintree\Model\Adapter
;
7
8
use
Magento\Braintree\Gateway\Config\Config
;
9
use
Magento\Framework\ObjectManagerInterface
;
10
14
class
BraintreeAdapterFactory
15
{
19
private
$objectManager;
20
24
private
$config;
25
30
public
function
__construct
(
ObjectManagerInterface
$objectManager,
Config
$config)
31
{
32
$this->config =
$config
;
33
$this->objectManager =
$objectManager
;
34
}
35
44
public
function
create
(
$storeId
=
null
)
45
{
46
return
$this->objectManager->create(
47
BraintreeAdapter::class,
48
[
49
'merchantId'
=> $this->config->getMerchantId(
$storeId
),
50
'publicKey'
=> $this->config->getValue(
Config::KEY_PUBLIC_KEY
,
$storeId
),
51
'privateKey'
=> $this->config->getValue(
Config::KEY_PRIVATE_KEY
,
$storeId
),
52
'environment'
=> $this->config->getEnvironment(
$storeId
),
53
]
54
);
55
}
56
}
Magento\Braintree\Model\Adapter
Definition:
BraintreeAdapter.php:6
$storeId
$storeId
Definition:
customer_review_with_rating.php:14
$objectManager
$objectManager
Definition:
bootstrap.php:17
$config
$config
Definition:
fraud_order.php:17
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Braintree\Model\Adapter\BraintreeAdapterFactory
Definition:
BraintreeAdapterFactory.php:14
Magento\Braintree\Gateway\Config\Config
Definition:
Config.php:14
Magento\Braintree\Model\Adapter\BraintreeAdapterFactory\create
create($storeId=null)
Definition:
BraintreeAdapterFactory.php:44
Magento\Braintree\Gateway\Config\Config\KEY_PRIVATE_KEY
const KEY_PRIVATE_KEY
Definition:
Config.php:21
Magento\Braintree\Model\Adapter\BraintreeAdapterFactory\__construct
__construct(ObjectManagerInterface $objectManager, Config $config)
Definition:
BraintreeAdapterFactory.php:30
Magento\Braintree\Gateway\Config\Config\KEY_PUBLIC_KEY
const KEY_PUBLIC_KEY
Definition:
Config.php:20