50 $pathPattern = self::DEFAULT_PATH_PATTERN
53 $this->ccConfig = $ccConfig;
63 return (
bool) $this->
getValue(self::KEY_ACTIVE);
71 return (
bool) $this->
getValue(self::KEY_DISPLAY_ON_SHOPPING_CART);
81 return (
bool) $this->
getValue(self::KEY_ALLOW_TO_EDIT_SHIPPING_ADDRESS);
91 return $this->
getValue(self::KEY_MERCHANT_NAME_OVERRIDE);
101 return $this->
getValue(self::KEY_REQUIRE_BILLING_ADDRESS);
111 return $this->
getValue(self::KEY_TITLE);
120 return (
bool) $this->
getValue(
'skip_order_review');
129 if (empty($this->icon)) {
130 $asset = $this->ccConfig->createAsset(
'Magento_Braintree::images/paypal.png');
131 list($width, $height) =
getimagesize($asset->getSourceFile());
133 'url' => $asset->getUrl(),
isRequiredBillingAddress()
const KEY_ALLOW_TO_EDIT_SHIPPING_ADDRESS
const KEY_DISPLAY_ON_SHOPPING_CART
isAllowToEditShippingAddress()
const KEY_REQUIRE_BILLING_ADDRESS
const KEY_MERCHANT_NAME_OVERRIDE
__construct(ScopeConfigInterface $scopeConfig, CcConfig $ccConfig, $methodCode=null, $pathPattern=self::DEFAULT_PATH_PATTERN)
getValue($field, $storeId=null)