Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
store_payment_configuration.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
12 
13 // save payment configuration per store
14 require __DIR__ . '/process_config_data.php';
15 require __DIR__ . '/../../Store/_files/store.php';
16 
17 $objectManager = Bootstrap::getObjectManager();
18 
20 $encryptor = $objectManager->get(EncryptorInterface::class);
21 
23  'payment/payflowpro/partner' => 'store_partner',
24  'payment/payflowpro/vendor' => 'store_vendor',
25  'payment/payflowpro/user' => $encryptor->encrypt('store_user'),
26  'payment/payflowpro/pwd' => $encryptor->encrypt('store_pwd'),
27 ];
29 $storeConfig = $objectManager->create(Config::class);
30 $storeConfig->setScope(ScopeInterface::SCOPE_STORES);
31 $storeConfig->setStore('test');
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition: _bootstrap.php:60