Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig) | |
setMethodInstance ($method) | |
setMethod ($method) | |
getMethodCode () | |
setStoreId ($storeId) | |
getValue ($key, $storeId=null) | |
setMethodCode ($methodCode) | |
setPathPattern ($pathPattern) | |
shouldUseUnilateralPayments () | |
isWppApiAvailabe () | |
isMethodAvailable ($methodCode=null) | |
isMethodActive ($method) | |
isMethodSupportedForCountry ($method=null, $countryCode=null) | |
getBuildNotationCode () | |
Data Fields | |
const | PAYMENT_ACTION_SALE = 'Sale' |
const | PAYMENT_ACTION_AUTH = 'Authorization' |
const | PAYMENT_ACTION_ORDER = 'Order' |
const | METHOD_WPP_EXPRESS = 'paypal_express' |
Protected Member Functions | |
_getSpecificConfigPath ($fieldName) | |
_prepareValue ($key, $value) | |
getProductMetadata () | |
Protected Attributes | |
$_methodCode | |
$_storeId | |
$pathPattern | |
$productMetadata | |
$_scopeConfig | |
$methodInstance | |
Class AbstractConfig
Definition at line 18 of file AbstractConfig.php.
__construct | ( | \Magento\Framework\App\Config\ScopeConfigInterface | $scopeConfig | ) |
\Magento\Framework\App\Config\ScopeConfigInterface | $scopeConfig |
Definition at line 72 of file AbstractConfig.php.
|
protected |
Map any supported payment method into a config path by specified field name
string | $fieldName |
Definition at line 191 of file AbstractConfig.php.
|
protected |
Perform additional config value preparation and return new value if needed
string | $key | Underscored key |
string | $value | Old value |
Definition at line 207 of file AbstractConfig.php.
getBuildNotationCode | ( | ) |
BN code getter
Definition at line 341 of file AbstractConfig.php.
getMethodCode | ( | ) |
Payment method instance code getter
Definition at line 116 of file AbstractConfig.php.
|
protected |
The getter function to get the ProductMetadata
Definition at line 353 of file AbstractConfig.php.
getValue | ( | $key, | |
$storeId = null |
|||
) |
Returns payment configuration value
string | $key | |
null | $storeId |
@SuppressWarnings(PHPMD.UnusedFormalParameter)
Implements ConfigInterface.
Definition at line 142 of file AbstractConfig.php.
isMethodActive | ( | $method | ) |
Check whether method active in configuration and supported for merchant country or not
string | $method | Method code |
Definition at line 266 of file AbstractConfig.php.
isMethodAvailable | ( | $methodCode = null | ) |
Check whether method available for checkout or not
null | $methodCode |
Definition at line 250 of file AbstractConfig.php.
isMethodSupportedForCountry | ( | $method = null , |
|
$countryCode = null |
|||
) |
Check whether method supported for specified country or not
string | null | $method | |
string | null | $countryCode |
@SuppressWarnings(PHPMD.UnusedFormalParameter)
Definition at line 331 of file AbstractConfig.php.
isWppApiAvailabe | ( | ) |
Check whether WPP API credentials are available for this method
Definition at line 235 of file AbstractConfig.php.
setMethod | ( | $method | ) |
Method code setter
string | MethodInterface | $method |
Definition at line 101 of file AbstractConfig.php.
setMethodCode | ( | $methodCode | ) |
Sets method code
string | $methodCode |
Implements ConfigInterface.
Definition at line 169 of file AbstractConfig.php.
setMethodInstance | ( | $method | ) |
Sets method instance used for retrieving method specific data
MethodInterface | $method |
Definition at line 89 of file AbstractConfig.php.
setPathPattern | ( | $pathPattern | ) |
Sets path pattern
string | $pathPattern |
Implements ConfigInterface.
Definition at line 180 of file AbstractConfig.php.
setStoreId | ( | $storeId | ) |
Store ID setter
int | $storeId |
Definition at line 127 of file AbstractConfig.php.
shouldUseUnilateralPayments | ( | ) |
Check whether only Unilateral payments (Accelerated Boarding) possible for Express method or not
Definition at line 225 of file AbstractConfig.php.
|
protected |
Definition at line 40 of file AbstractConfig.php.
|
protected |
Definition at line 67 of file AbstractConfig.php.
|
protected |
Definition at line 47 of file AbstractConfig.php.
|
protected |
Definition at line 81 of file AbstractConfig.php.
|
protected |
Definition at line 52 of file AbstractConfig.php.
|
protected |
Definition at line 57 of file AbstractConfig.php.
const METHOD_WPP_EXPRESS = 'paypal_express' |
#- PayPal Website Payments Pro - Express Checkout
Definition at line 33 of file AbstractConfig.php.
const PAYMENT_ACTION_AUTH = 'Authorization' |
Definition at line 25 of file AbstractConfig.php.
const PAYMENT_ACTION_ORDER = 'Order' |
Definition at line 27 of file AbstractConfig.php.
const PAYMENT_ACTION_SALE = 'Sale' |
#+ Payment actions
Definition at line 23 of file AbstractConfig.php.