get(EncryptorInterface::class); // save payment configuration for the default scope $configData = [ 'payment/payflowpro/partner' => 'def_partner', 'payment/payflowpro/vendor' => 'def_vendor', 'payment/payflowpro/user' => $encryptor->encrypt('def_user'), 'payment/payflowpro/pwd' => $encryptor->encrypt('def_pwd'), ]; /** @var Config $defConfig */ $defConfig = $objectManager->create(Config::class); $defConfig->setScope(ScopeConfigInterface::SCOPE_TYPE_DEFAULT); $processConfigData($defConfig, $configData);