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
magento2-base
dev
tests
integration
testsuite
Magento
Braintree
_files
payments.php
Go to the documentation of this file.
1
<?php
6
use
Magento\Braintree\Model\Ui\PayPal\ConfigProvider
;
7
use
Magento\Config\Model\Config
;
8
use
Magento\TestFramework\Helper\Bootstrap
;
9
10
$objectManager
= Bootstrap::getObjectManager();
12
$config
=
$objectManager
->get(Config::class);
13
$config
->setDataByPath(
'payment/'
. ConfigProvider::PAYPAL_CODE .
'/active'
, 1);
14
$config
->save();
15
$config
->setDataByPath(
'payment/'
. ConfigProvider::PAYPAL_VAULT_CODE .
'/active'
, 1);
16
$config
->save();
Magento\TestFramework\Helper\Bootstrap
Definition:
Bootstrap.php:12
Magento\Braintree\Model\Ui\PayPal\ConfigProvider
Definition:
ConfigProvider.php:15
$config
$config
Definition:
payments.php:12
$objectManager
$objectManager
Definition:
payments.php:10
Magento\Config\Model\Config