Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
payments.php
Go to the documentation of this file.
1 <?php
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();
$config
Definition: payments.php:12
$objectManager
Definition: payments.php:10