62 private static $bnCode =
'Magento_Cart_%s';
75 $this->_scopeConfig = $scopeConfig;
91 $this->methodInstance =
$method;
104 $this->_methodCode =
$method->getCode();
145 case 'getDebugReplacePrivateDataKeys':
146 return $this->methodInstance->getDebugReplacePrivateDataKeys();
148 $underscored = strtolower(preg_replace(
'/(.)([A-Z])/',
"$1_$2", $key));
150 if (
$path !==
null) {
151 $value = $this->_scopeConfig->getValue(
193 if ($this->pathPattern) {
194 return sprintf($this->pathPattern, $this->_methodCode, $fieldName);
197 return "payment/{$this->_methodCode}/{$fieldName}";
210 if ($key ==
'payment_action' &&
211 $value != self::PAYMENT_ACTION_SALE &&
212 $this->_methodCode == self::METHOD_WPP_EXPRESS &&
237 return $this->
getValue(
'api_username')
239 && ($this->
getValue(
'api_signature')
271 $isEnabled = $this->_scopeConfig->isSetFlag(
276 || $this->_scopeConfig->isSetFlag(
285 $isEnabled = $this->_scopeConfig->isSetFlag(
290 || $this->_scopeConfig->isSetFlag(
299 $isEnabled = $this->_scopeConfig->isSetFlag(
304 || $this->_scopeConfig->isSetFlag(
312 $isEnabled = $this->_scopeConfig->isSetFlag(
313 "payment/{$method}/active",
344 return $notationCode ?: sprintf(self::$bnCode, $this->
getProductMetadata()->getEdition());
355 if ($this->productMetadata ===
null) {
shouldUseUnilateralPayments()
elseif(isset( $params[ 'redirect_parent']))
setMethodInstance($method)
isMethodSupportedForCountry($method=null, $countryCode=null)
isMethodAvailable($methodCode=null)
getValue($key, $storeId=null)
const PAYMENT_ACTION_AUTH
_getSpecificConfigPath($fieldName)
_prepareValue($key, $value)
__construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig)
setPathPattern($pathPattern)
const PAYMENT_ACTION_SALE
const PAYMENT_ACTION_ORDER
setMethodCode($methodCode)