![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/cartforge.co/app/code/StripeIntegration/Payments/Helper/ |
<?php namespace StripeIntegration\Payments\Helper; use Magento\Store\Model\ScopeInterface; class Config { private $scopeConfig; private $resourceConfig; public function __construct( \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Config\Model\ResourceModel\Config $resourceConfig ) { $this->scopeConfig = $scopeConfig; $this->resourceConfig = $resourceConfig; } public function getConfigData($path, $storeId) { return $this->scopeConfig->getValue($path, ScopeInterface::SCOPE_STORE, $storeId); } public function setConfigData($path, $value, $scope, $storeId) { return $this->resourceConfig->saveConfig($path, $value, $scope, $storeId); } }