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
Paypal
Fixtures
store_payment_configuration.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
use
Magento\Config\Model\Config
;
9
use
Magento\Framework\Encryption\EncryptorInterface
;
10
use
Magento\Store\Model\ScopeInterface
;
11
use
Magento\TestFramework\Helper\Bootstrap
;
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
22
$storeConfigData
= [
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'
);
32
$processConfigData
(
$storeConfig
,
$storeConfigData
);
$encryptor
$encryptor
Definition:
store_payment_configuration.php:20
Magento\TestFramework\Helper\Bootstrap
Definition:
Bootstrap.php:12
__DIR__
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition:
_bootstrap.php:60
$storeConfigData
$storeConfigData
Definition:
store_payment_configuration.php:22
Magento\Framework\Encryption\EncryptorInterface
Definition:
EncryptorInterface.php:14
Magento\Store\Model\ScopeInterface
Definition:
ScopeInterface.php:12
$storeConfig
$storeConfig
Definition:
store_payment_configuration.php:29
Magento\Config\Model\Config
$objectManager
$objectManager
Definition:
store_payment_configuration.php:17
$processConfigData
$processConfigData
Definition:
payment_configuration.php:18