Skip to content

Commit

Permalink
Updated config scope to store scope instead of default
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Pieters committed Jul 27, 2016
1 parent 0bd58b0 commit 6c02f51
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Model/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

namespace Paynl\Payment\Model;
use Magento\Framework\App\Config\ScopeConfigInterface;

/**
* Description of Config
Expand All @@ -26,21 +27,21 @@ public function __construct(

public function getApiToken()
{
return $this->_scopeConfigInterface->getValue('payment/paynl/apitoken');
return $this->_scopeConfigInterface->getValue('payment/paynl/apitoken', 'store');
}

public function getServiceId()
{
return $this->_scopeConfigInterface->getValue('payment/paynl/serviceid');
return $this->_scopeConfigInterface->getValue('payment/paynl/serviceid', 'store');
}

public function isTestMode()
{
return $this->_scopeConfigInterface->getValue('payment/paynl/testmode') == 1;
return $this->_scopeConfigInterface->getValue('payment/paynl/testmode', 'store') == 1;
}

public function getPaymentOptionId($methodCode){
return $this->_scopeConfigInterface->getValue('payment/'.$methodCode.'/payment_option_id');
return $this->_scopeConfigInterface->getValue('payment/'.$methodCode.'/payment_option_id', 'store');
}

/**
Expand Down

0 comments on commit 6c02f51

Please sign in to comment.