Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (ScopeConfigInterface $scopeConfig, $methodCode=null, $pathPattern=self::DEFAULT_PATH_PATTERN, Json $serializer=null) | |
getCountrySpecificCardTypeConfig ($storeId=null) | |
getAvailableCardTypes ($storeId=null) | |
getCcTypesMapper () | |
getCountryAvailableCardTypes ($country, $storeId=null) | |
isCvvEnabled ($storeId=null) | |
isVerify3DSecure ($storeId=null) | |
getThresholdAmount ($storeId=null) | |
get3DSecureSpecificCountries ($storeId=null) | |
getEnvironment ($storeId=null) | |
getKountMerchantId ($storeId=null) | |
getMerchantId ($storeId=null) | |
getMerchantAccountId ($storeId=null) | |
getSdkUrl () | |
hasFraudProtection ($storeId=null) | |
isActive ($storeId=null) | |
getDynamicDescriptors ($storeId=null) | |
![]() | |
__construct (ScopeConfigInterface $scopeConfig, $methodCode=null, $pathPattern=self::DEFAULT_PATH_PATTERN) | |
setMethodCode ($methodCode) | |
setPathPattern ($pathPattern) | |
getValue ($field, $storeId=null) | |
Data Fields | |
const | KEY_ENVIRONMENT = 'environment' |
const | KEY_ACTIVE = 'active' |
const | KEY_MERCHANT_ID = 'merchant_id' |
const | KEY_MERCHANT_ACCOUNT_ID = 'merchant_account_id' |
const | KEY_PUBLIC_KEY = 'public_key' |
const | KEY_PRIVATE_KEY = 'private_key' |
const | KEY_COUNTRY_CREDIT_CARD = 'countrycreditcard' |
const | KEY_CC_TYPES = 'cctypes' |
const | KEY_CC_TYPES_BRAINTREE_MAPPER = 'cctypes_braintree_mapper' |
const | KEY_SDK_URL = 'sdk_url' |
const | KEY_USE_CVV = 'useccv' |
const | KEY_VERIFY_3DSECURE = 'verify_3dsecure' |
const | KEY_THRESHOLD_AMOUNT = 'threshold_amount' |
const | KEY_VERIFY_ALLOW_SPECIFIC = 'verify_all_countries' |
const | KEY_VERIFY_SPECIFIC = 'verify_specific_countries' |
const | VALUE_3DSECURE_ALL = 0 |
const | CODE_3DSECURE = 'three_d_secure' |
const | KEY_KOUNT_MERCHANT_ID = 'kount_id' |
const | FRAUD_PROTECTION = 'fraudprotection' |
![]() | |
const | DEFAULT_PATH_PATTERN = 'payment/%s/%s' |
Class Config
Definition at line 14 of file Config.php.
__construct | ( | ScopeConfigInterface | $scopeConfig, |
$methodCode = null , |
|||
$pathPattern = self::DEFAULT_PATH_PATTERN , |
|||
Json | $serializer = null |
||
) |
Braintree config constructor
ScopeConfigInterface | $scopeConfig | |
null | string | $methodCode | |
string | $pathPattern | |
Json | null | $serializer |
Definition at line 49 of file Config.php.
get3DSecureSpecificCountries | ( | $storeId = null | ) |
Gets list of specific countries for 3d secure.
int | null | $storeId |
Definition at line 165 of file Config.php.
getAvailableCardTypes | ( | $storeId = null | ) |
Retrieve available credit card types
int | null | $storeId |
Definition at line 90 of file Config.php.
getCcTypesMapper | ( | ) |
Retrieve mapper between Magento and Braintree card types
Definition at line 102 of file Config.php.
getCountryAvailableCardTypes | ( | $country, | |
$storeId = null |
|||
) |
Gets list of card types available for country.
string | $country | |
int | null | $storeId |
Definition at line 119 of file Config.php.
getCountrySpecificCardTypeConfig | ( | $storeId = null | ) |
Return the country specific card type config
int | null | $storeId |
Definition at line 74 of file Config.php.
getDynamicDescriptors | ( | $storeId = null | ) |
Gets list of configured dynamic descriptors.
int | null | $storeId |
Definition at line 255 of file Config.php.
getEnvironment | ( | $storeId = null | ) |
Gets value of configured environment. Possible values: production or sandbox.
int | null | $storeId |
Definition at line 181 of file Config.php.
getKountMerchantId | ( | $storeId = null | ) |
Gets Kount merchant ID.
int | null | $storeId |
Definition at line 192 of file Config.php.
getMerchantAccountId | ( | $storeId = null | ) |
Gets Merchant account ID.
int | null | $storeId |
Definition at line 214 of file Config.php.
getMerchantId | ( | $storeId = null | ) |
Gets merchant ID.
int | null | $storeId |
Definition at line 203 of file Config.php.
getSdkUrl | ( | ) |
Definition at line 222 of file Config.php.
getThresholdAmount | ( | $storeId = null | ) |
Gets threshold amount for 3d secure.
int | null | $storeId |
Definition at line 154 of file Config.php.
hasFraudProtection | ( | $storeId = null | ) |
Checks if fraud protection is enabled.
int | null | $storeId |
Definition at line 233 of file Config.php.
isActive | ( | $storeId = null | ) |
Gets Payment configuration status.
int | null | $storeId |
Definition at line 244 of file Config.php.
isCvvEnabled | ( | $storeId = null | ) |
Checks if cvv field is enabled.
int | null | $storeId |
Definition at line 132 of file Config.php.
isVerify3DSecure | ( | $storeId = null | ) |
Checks if 3d secure verification enabled.
int | null | $storeId |
Definition at line 143 of file Config.php.
const CODE_3DSECURE = 'three_d_secure' |
Definition at line 32 of file Config.php.
const FRAUD_PROTECTION = 'fraudprotection' |
Definition at line 34 of file Config.php.
const KEY_ACTIVE = 'active' |
Definition at line 17 of file Config.php.
const KEY_CC_TYPES = 'cctypes' |
Definition at line 23 of file Config.php.
const KEY_CC_TYPES_BRAINTREE_MAPPER = 'cctypes_braintree_mapper' |
Definition at line 24 of file Config.php.
const KEY_COUNTRY_CREDIT_CARD = 'countrycreditcard' |
Definition at line 22 of file Config.php.
const KEY_ENVIRONMENT = 'environment' |
Definition at line 16 of file Config.php.
const KEY_KOUNT_MERCHANT_ID = 'kount_id' |
Definition at line 33 of file Config.php.
const KEY_MERCHANT_ACCOUNT_ID = 'merchant_account_id' |
Definition at line 19 of file Config.php.
const KEY_MERCHANT_ID = 'merchant_id' |
Definition at line 18 of file Config.php.
const KEY_PRIVATE_KEY = 'private_key' |
Definition at line 21 of file Config.php.
const KEY_PUBLIC_KEY = 'public_key' |
Definition at line 20 of file Config.php.
const KEY_SDK_URL = 'sdk_url' |
Definition at line 25 of file Config.php.
const KEY_THRESHOLD_AMOUNT = 'threshold_amount' |
Definition at line 28 of file Config.php.
const KEY_USE_CVV = 'useccv' |
Definition at line 26 of file Config.php.
const KEY_VERIFY_3DSECURE = 'verify_3dsecure' |
Definition at line 27 of file Config.php.
const KEY_VERIFY_ALLOW_SPECIFIC = 'verify_all_countries' |
Definition at line 29 of file Config.php.
const KEY_VERIFY_SPECIFIC = 'verify_specific_countries' |
Definition at line 30 of file Config.php.
const VALUE_3DSECURE_ALL = 0 |
Definition at line 31 of file Config.php.