/** * Map any supported payment method into a config path by specified field name * * @param string $fieldName * @return string|null */ protected function _getSpecificConfigPath($fieldName) { $path = $this->_mapExpressFieldset($fieldName); if ($path === null) { $path = $this->_mapWppFieldset($fieldName); } if ($path === null) { $path = parent::_getSpecificConfigPath($fieldName); } return $path; }
/** * Map any supported payment method into a config path by specified field name * * @param string $fieldName * @return string|null */ protected function _getSpecificConfigPath($fieldName) { $path = parent::_getSpecificConfigPath($fieldName); if (is_null($path)) { switch ($this->_methodCode) { case self::METHOD_PAYFLOW_BILLING_AGREEMENT: case self::METHOD_PAYFLOW_ORDERSTORED_AGREEMENT: $path = $this->_mapMethodFieldset($fieldName); if (is_null($path)) { $path = $this->_mapWpukFieldset($fieldName); } break; case self::METHOD_PAYPAL_ORDERSTORED_AGREEMENT: $path = $this->_mapMethodFieldset($fieldName); if (is_null($path)) { $path = $this->_mapWppFieldset($fieldName); } break; case self::METHOD_PAYPAL_DIRECT_CUSTOMERSTORED: case self::METHOD_PAYPAL_DIRECT_ORDERSTORED: $path = $this->_mapStoredFieldset($fieldName); break; default: } } return $path; }