get(EncryptorInterface::class); $websiteConfigData = [ 'payment/payflowpro/partner' => 'website_partner', 'payment/payflowpro/vendor' => 'website_vendor', 'payment/payflowpro/user' => $encryptor->encrypt('website_user'), 'payment/payflowpro/pwd' => $encryptor->encrypt('website_pwd'), ]; /** @var Config $websiteConfig */ $websiteConfig = $objectManager->create(Config::class); $websiteConfig->setScope(ScopeInterface::SCOPE_WEBSITES); $websiteConfig->setWebsite($websiteId); $processConfigData($websiteConfig, $websiteConfigData);