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
website_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 website config data
14
require
__DIR__
.
'/../../Store/_files/second_website_with_two_stores.php'
;
15
require
__DIR__
.
'/process_config_data.php'
;
16
17
$objectManager
= Bootstrap::getObjectManager();
18
20
$encryptor
=
$objectManager
->get(EncryptorInterface::class);
21
$websiteConfigData
= [
22
'payment/payflowpro/partner'
=>
'website_partner'
,
23
'payment/payflowpro/vendor'
=>
'website_vendor'
,
24
'payment/payflowpro/user'
=>
$encryptor
->encrypt(
'website_user'
),
25
'payment/payflowpro/pwd'
=>
$encryptor
->encrypt(
'website_pwd'
),
26
];
28
$websiteConfig
=
$objectManager
->create(Config::class);
29
$websiteConfig
->setScope(ScopeInterface::SCOPE_WEBSITES);
30
$websiteConfig
->setWebsite(
$websiteId
);
31
$processConfigData
(
$websiteConfig
,
$websiteConfigData
);
$encryptor
$encryptor
Definition:
website_payment_configuration.php:20
$websiteConfig
$websiteConfig
Definition:
website_payment_configuration.php:28
Magento\TestFramework\Helper\Bootstrap
Definition:
Bootstrap.php:12
$objectManager
$objectManager
Definition:
website_payment_configuration.php:17
__DIR__
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition:
_bootstrap.php:60
$websiteConfigData
$websiteConfigData
Definition:
website_payment_configuration.php:21
Magento\Framework\Encryption\EncryptorInterface
Definition:
EncryptorInterface.php:14
Magento\Store\Model\ScopeInterface
Definition:
ScopeInterface.php:12
Magento\Config\Model\Config
$websiteId
$websiteId
Definition:
products_with_websites_and_stores.php:11
$processConfigData
$processConfigData
Definition:
payment_configuration.php:18