|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Static Public Member Functions | |
| static | getIsCreditCardMethod ($code) |
Data Fields | |
| const | METHOD_EXPRESS = 'paypal_express' |
| const | METHOD_WPS_EXPRESS = 'wps_express' |
| const | METHOD_WPS_BML = 'wps_express_bml' |
| const | METHOD_WPP_BML = 'paypal_express_bml' |
| const | METHOD_WPP_DIRECT = 'paypal_direct' |
| const | METHOD_PAYMENT_PRO = 'paypal_payment_pro' |
| const | METHOD_WPP_PE_EXPRESS = 'payflow_express' |
| const | METHOD_WPP_PE_BML = 'payflow_express_bml' |
| const | METHOD_PAYFLOWPRO = 'payflowpro' |
| const | METHOD_PAYFLOWLINK = 'payflow_link' |
| const | METHOD_PAYFLOWADVANCED = 'payflow_advanced' |
| const | METHOD_HOSTEDPRO = 'hosted_pro' |
| const | METHOD_BILLING_AGREEMENT = 'paypal_billing_agreement' |
| const | EC_FLAVOR_DYNAMIC = 'dynamic' |
| const | EC_FLAVOR_STATIC = 'static' |
| const | EC_BUTTON_TYPE_SHORTCUT = 'ecshortcut' |
| const | EC_BUTTON_TYPE_MARK = 'ecmark' |
| const | PAYMENT_MARK_SMALL = 'small' |
| const | PAYMENT_MARK_MEDIUM = 'medium' |
| const | PAYMENT_MARK_LARGE = 'large' |
| const | DEFAULT_LOGO_TYPE = 'wePrefer_150x60' |
| const | AUTHORIZATION_AMOUNT_ONE = 1 |
| const | AUTHORIZATION_AMOUNT_FULL = 2 |
| const | REQUIRE_BILLING_ADDRESS_NO = 0 |
| const | REQUIRE_BILLING_ADDRESS_ALL = 1 |
| const | REQUIRE_BILLING_ADDRESS_VIRTUAL = 2 |
| const | FRAUD_ACTION_ACCEPT = 'Acept' |
| const | FRAUD_ACTION_DENY = 'Deny' |
| const | REFUND_TYPE_FULL = 'Full' |
| const | REFUND_TYPE_PARTIAL = 'Partial' |
| const | EC_SOLUTION_TYPE_SOLE = 'Sole' |
| const | EC_SOLUTION_TYPE_MARK = 'Mark' |
| const | WPS_TRANSPORT_IPN = 'ipn' |
| const | WPS_TRANSPORT_PDT = 'pdt' |
| const | WPS_TRANSPORT_IPN_PDT = 'ipn_n_pdt' |
| const | EC_BA_SIGNUP_AUTO = 'auto' |
| const | EC_BA_SIGNUP_ASK = 'ask' |
| const | EC_BA_SIGNUP_NEVER = 'never' |
| const | TRANSFER_CART_LINE_ITEMS = 'lineItemsEnabled' |
| const | TRANSFER_SHIPPING_OPTIONS = 'transferShippingOptions' |
| const | XML_PATH_PAYPAL_EXPRESS_SKIP_ORDER_REVIEW_STEP_FLAG = 'payment/paypal_express/skip_order_review_step' |
Data Fields inherited from AbstractConfig | |
| const | PAYMENT_ACTION_SALE = 'Sale' |
| const | PAYMENT_ACTION_AUTH = 'Authorization' |
| const | PAYMENT_ACTION_ORDER = 'Order' |
| const | METHOD_WPP_EXPRESS = 'paypal_express' |
Protected Member Functions | |
| _getDynamicImageUrl ($type, $localeCode, $orderTotal, $pal) | |
| _getSupportedLocaleCode ($localeCode=null) | |
| _getSpecificConfigPath ($fieldName) | |
| _mapExpressFieldset ($fieldName) | |
| _mapBmlFieldset ($fieldName) | |
| _mapBmlPayflowFieldset ($fieldName) | |
| _mapDirectFieldset ($fieldName) | |
| _mapWppFieldset ($fieldName) | |
| _mapWpukFieldset ($fieldName) | |
| _mapGenericStyleFieldset ($fieldName) | |
| _mapGeneralFieldset ($fieldName) | |
| _mapMethodFieldset ($fieldName) | |
Protected Member Functions inherited from AbstractConfig | |
| _getSpecificConfigPath ($fieldName) | |
| _prepareValue ($key, $value) | |
| getProductMetadata () | |
Protected Attributes | |
| $_buildNotationPPMap | |
| $_ecStyleConfigMap | |
| $_supportedCurrencyCodes | |
| $_supportedCountryCodes | |
| $_supportedBuyerCountryCodes | |
| $_supportedImageLocales | |
| $directoryHelper | |
| $_storeManager | |
| $_cctypeFactory | |
| $_certFactory | |
Protected Attributes inherited from AbstractConfig | |
| $_methodCode | |
| $_storeId | |
| $pathPattern | |
| $productMetadata | |
| $_scopeConfig | |
| $methodInstance | |
Config model that is aware of all \Magento\Paypal payment methods Works with PayPal-specific system configuration
@SuppressWarnings(PHPMD.ExcessivePublicCount) @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
Definition at line 18 of file Config.php.
| __construct | ( | \Magento\Framework\App\Config\ScopeConfigInterface | $scopeConfig, |
| \Magento\Directory\Helper\Data | $directoryHelper, | ||
| \Magento\Store\Model\StoreManagerInterface | $storeManager, | ||
| \Magento\Payment\Model\Source\CctypeFactory | $cctypeFactory, | ||
| \Magento\Paypal\Model\CertFactory | $certFactory, | ||
$params = [] |
|||
| ) |
| \Magento\Framework\App\Config\ScopeConfigInterface | $scopeConfig | |
| \Magento\Directory\Helper\Data | $directoryHelper | |
| \Magento\Store\Model\StoreManagerInterface | $storeManager | |
| \Magento\Payment\Model\Source\CctypeFactory | $cctypeFactory | |
| CertFactory | $certFactory | |
| array | $params |
Definition at line 610 of file Config.php.
|
protected |
Dynamic PayPal image URL getter Also can render dynamic Acceptance Mark
| string | $type | |
| string | $localeCode | |
| float | $orderTotal | |
| string | $pal |
Definition at line 1387 of file Config.php.
|
protected |
Map any supported payment method into a config path by specified field name
| string | $fieldName |
Definition at line 1438 of file Config.php.
|
protected |
Check whether specified locale code is supported. Fallback to en_US
| string | null | $localeCode |
Definition at line 1422 of file Config.php.
|
protected |
Map PayPal Express Bill Me Later config fields
| string | $fieldName |
Definition at line 1517 of file Config.php.
|
protected |
Map PayPal Express Bill Me Later config fields (Payflow Edition)
| string | $fieldName |
Definition at line 1533 of file Config.php.
|
protected |
Map PayPal Direct config fields
| string | $fieldName |
Definition at line 1549 of file Config.php.
|
protected |
Map PayPal Express config fields
| string | $fieldName |
Definition at line 1491 of file Config.php.
|
protected |
Map PayPal General Settings
| string | $fieldName |
Definition at line 1651 of file Config.php.
|
protected |
Map PayPal common style config fields
| string | $fieldName |
Definition at line 1630 of file Config.php.
|
protected |
Map PayPal General Settings
| string | $fieldName |
Definition at line 1669 of file Config.php.
|
protected |
Map PayPal Website Payments Pro common config fields
| string | $fieldName |
Definition at line 1566 of file Config.php.
|
protected |
Map PayPal Website Payments Pro common config fields
| string | $fieldName |
Definition at line 1593 of file Config.php.
| areButtonsDynamic | ( | ) |
Whether Express Checkout button should be rendered dynamically
Definition at line 953 of file Config.php.
| exportExpressCheckoutStyleSettings | ( | \Magento\Framework\DataObject | $to | ) |
Export page style current settings to specified object
| \Magento\Framework\DataObject | $to |
Definition at line 1367 of file Config.php.
| getAdditionalOptionsLogoTypes | ( | ) |
| getAdditionalOptionsLogoUrl | ( | $localeCode, | |
$type = false |
|||
| ) |
Return PayPal logo URL with additional options
| string | $localeCode | Supported locale code |
| bool | string | $type | One of supported logo types |
Definition at line 1146 of file Config.php.
| getApiAuthenticationMethods | ( | ) |
| getApiCertificate | ( | ) |
| getBmlDisplay | ( | $section | ) |
Get Display option from stored config
| string | $section |
Definition at line 1732 of file Config.php.
| getBmlPosition | ( | $section | ) |
Get Position option from stored config
| string | $section |
Definition at line 1759 of file Config.php.
| getBmlPublisherId | ( | ) |
| getBmlSize | ( | $section | ) |
Get Size option from stored config
| string | $section |
Definition at line 1774 of file Config.php.
| getCountryMethods | ( | $countryCode = null | ) |
Return list of allowed methods for specified country iso code
| string | null | $countryCode | 2-letters iso code |
Definition at line 750 of file Config.php.
| getExpressCheckoutBASignupOptions | ( | ) |
Retrieve express checkout billing agreement signup options
Definition at line 1254 of file Config.php.
| getExpressCheckoutButtonFlavors | ( | ) |
| getExpressCheckoutButtonTypes | ( | ) |
| getExpressCheckoutCompleteUrl | ( | $token | ) |
Get url for additional actions that PayPal may require customer to do after placing the order. For instance, redirecting customer to bank for payment confirmation.
| string | $token |
Definition at line 904 of file Config.php.
| getExpressCheckoutEditUrl | ( | $token | ) |
Get url that allows to edit checkout details on paypal side
| \Magento\Paypal\Controller\Express | string | $token |
Definition at line 892 of file Config.php.
| getExpressCheckoutInContextImageUrl | ( | $localeCode | ) |
Express in context checkout shortcut pic URL getter
| string | $localeCode |
Definition at line 986 of file Config.php.
| getExpressCheckoutOrderUrl | ( | $orderId | ) |
Get url for dispatching customer to checkout retrial
| string | $orderId |
Definition at line 881 of file Config.php.
| getExpressCheckoutShortcutImageUrl | ( | $localeCode, | |
$orderTotal = null, |
|||
$pal = null |
|||
| ) |
Express checkout shortcut pic URL getter PayPal will ignore "pal", if there is no total amount specified
| string | $localeCode | |
| float | null | $orderTotal | |
| string | null | $pal | encrypted summary about merchant |
Definition at line 968 of file Config.php.
| getExpressCheckoutSolutionTypes | ( | ) |
Express Checkout "solution types" source getter "sole" = "Express Checkout for Auctions" - PayPal allows guest checkout "mark" = "Normal Express Checkout" - PayPal requires to checkout with PayPal buyer account only
Definition at line 1244 of file Config.php.
| getExpressCheckoutStartUrl | ( | $token | ) |
Get url for dispatching customer to express checkout start
| string | $token |
Definition at line 866 of file Config.php.
|
static |
Check whether the specified payment method is a CC-based one
| string | $code |
Definition at line 1326 of file Config.php.
| getMerchantCountry | ( | ) |
Return merchant country code, use default country if it not specified in General settings
Definition at line 711 of file Config.php.
| getPayflowproCcTypesAsOptionArray | ( | ) |
Return list of supported credit card types by Payflow Pro gateway
Definition at line 1314 of file Config.php.
| getPaymentAction | ( | ) |
Mapper from PayPal-specific payment actions to Magento payment actions
Definition at line 1224 of file Config.php.
| getPaymentActions | ( | ) |
Payment actions source getter
Definition at line 1193 of file Config.php.
| getPaymentFormLogoUrl | ( | $localeCode | ) |
Getter for Payment form logo images
| string | $localeCode |
Definition at line 1083 of file Config.php.
| getPaymentMarkImageUrl | ( | $localeCode, | |
$orderTotal = null, |
|||
$pal = null, |
|||
$staticSize = null |
|||
| ) |
Get PayPal "mark" image URL Supposed to be used on payment methods selection $staticSize is applicable for static images only
| string | $localeCode | |
| float | null | $orderTotal | |
| string | null | $pal | |
| string | null | $staticSize |
Definition at line 1008 of file Config.php.
| getPaymentMarkWhatIsPaypalUrl | ( | \Magento\Framework\Locale\ResolverInterface | $localeResolver = null | ) |
Get "What Is PayPal" localized URL Supposed to be used with "mark" as popup window
| \Magento\Framework\Locale\ResolverInterface | $localeResolver |
Definition at line 1040 of file Config.php.
| getPayPalBasicStartUrl | ( | $token | ) |
Return start url for PayPal Basic
| string | $token |
Definition at line 832 of file Config.php.
| getPayPalIpnUrl | ( | ) |
PayPal web URL for IPN
Definition at line 940 of file Config.php.
| getPaypalUrl | ( | array | $params = [] | ) |
PayPal web URL generic getter
| array | $params |
Definition at line 926 of file Config.php.
| getRequireBillingAddressOptions | ( | ) |
Getter for Solution banner images
| string | $localeCode | |
| bool | $isVertical | |
| bool | $isEcheck |
Definition at line 1067 of file Config.php.
| getStartBillingAgreementUrl | ( | $token | ) |
Retrieve url for initialization of billing agreement
| string | $token |
Definition at line 915 of file Config.php.
| getSupportedBuyerCountryCodes | ( | ) |
Return buyer country codes supported by PayPal
Definition at line 701 of file Config.php.
| getSupportedMerchantCountryCodes | ( | ) |
Return merchant country codes supported by PayPal
Definition at line 691 of file Config.php.
| getWppCcTypesAsOptionArray | ( | ) |
Return list of supported credit card types by Paypal Direct gateway
Definition at line 1290 of file Config.php.
| getWppPeCcTypesAsOptionArray | ( | ) |
Return list of supported credit card types by Paypal Direct (Payflow Edition) gateway
Definition at line 1302 of file Config.php.
| getWpsPaymentDeliveryMethods | ( | ) |
| isCurrencyCodeSupported | ( | $code | ) |
Check whether specified currency code is supported
| string | $code |
Definition at line 1344 of file Config.php.
| isMethodAvailable | ( | $methodCode = null | ) |
Check whether method available for checkout or not Logic based on merchant country, methods dependence
| string | null | $methodCode |
Definition at line 641 of file Config.php.
| isMethodSupportedForCountry | ( | $method = null, |
|
$countryCode = null |
|||
| ) |
Check whether method supported for specified country or not Use $_methodCode and merchant country by default
| string | null | $method | |
| string | null | $countryCode |
Definition at line 732 of file Config.php.
| isOrderReviewStepDisabled | ( | ) |
Check whether order review step enabled in configuration
Definition at line 851 of file Config.php.
| shouldAskToCreateBillingAgreement | ( | ) |
Whether to ask customer to create billing agreements Unilateral payments are incompatible with the billing agreements
Definition at line 1269 of file Config.php.
|
protected |
Definition at line 181 of file Config.php.
|
protected |
Definition at line 595 of file Config.php.
|
protected |
Definition at line 600 of file Config.php.
|
protected |
Definition at line 192 of file Config.php.
|
protected |
Definition at line 590 of file Config.php.
|
protected |
Definition at line 311 of file Config.php.
|
protected |
Definition at line 235 of file Config.php.
|
protected |
Definition at line 205 of file Config.php.
|
protected |
Definition at line 563 of file Config.php.
|
protected |
Definition at line 585 of file Config.php.
| const AUTHORIZATION_AMOUNT_FULL = 2 |
Definition at line 101 of file Config.php.
| const AUTHORIZATION_AMOUNT_ONE = 1 |
#+ Payment actions
Definition at line 99 of file Config.php.
| const DEFAULT_LOGO_TYPE = 'wePrefer_150x60' |
#-
Definition at line 94 of file Config.php.
| const EC_BA_SIGNUP_ASK = 'ask' |
Definition at line 159 of file Config.php.
| const EC_BA_SIGNUP_AUTO = 'auto' |
#- #+ Billing Agreement Signup type
Definition at line 157 of file Config.php.
| const EC_BA_SIGNUP_NEVER = 'never' |
Definition at line 161 of file Config.php.
| const EC_BUTTON_TYPE_MARK = 'ecmark' |
Definition at line 85 of file Config.php.
| const EC_BUTTON_TYPE_SHORTCUT = 'ecshortcut' |
Definition at line 83 of file Config.php.
| const EC_FLAVOR_DYNAMIC = 'dynamic' |
#+ Buttons and images
Definition at line 79 of file Config.php.
| const EC_FLAVOR_STATIC = 'static' |
Definition at line 81 of file Config.php.
| const EC_SOLUTION_TYPE_MARK = 'Mark' |
Definition at line 139 of file Config.php.
| const EC_SOLUTION_TYPE_SOLE = 'Sole' |
Definition at line 137 of file Config.php.
| const FRAUD_ACTION_ACCEPT = 'Acept' |
#- #+ Fraud management actions
Definition at line 119 of file Config.php.
| const FRAUD_ACTION_DENY = 'Deny' |
Definition at line 121 of file Config.php.
| const METHOD_BILLING_AGREEMENT = 'paypal_billing_agreement' |
Definition at line 74 of file Config.php.
| const METHOD_EXPRESS = 'paypal_express' |
PayPal Express
Definition at line 26 of file Config.php.
| const METHOD_HOSTEDPRO = 'hosted_pro' |
Definition at line 72 of file Config.php.
| const METHOD_PAYFLOWADVANCED = 'payflow_advanced' |
Definition at line 70 of file Config.php.
| const METHOD_PAYFLOWLINK = 'payflow_link' |
Definition at line 68 of file Config.php.
| const METHOD_PAYFLOWPRO = 'payflowpro' |
Definition at line 66 of file Config.php.
| const METHOD_PAYMENT_PRO = 'paypal_payment_pro' |
PayPal Website Payments Pro - Direct Payments - alias METHOD_PAYFLOWPRO
Definition at line 51 of file Config.php.
| const METHOD_WPP_BML = 'paypal_express_bml' |
PayPal Bill Me Later - Express Checkout
Definition at line 41 of file Config.php.
| const METHOD_WPP_DIRECT = 'paypal_direct' |
PayPal Website Payments Pro - Direct Payments
Definition at line 46 of file Config.php.
| const METHOD_WPP_PE_BML = 'payflow_express_bml' |
PayPal Bill Me Later - Express Checkout (Payflow Edition)
Definition at line 61 of file Config.php.
| const METHOD_WPP_PE_EXPRESS = 'payflow_express' |
Express Checkout (Payflow Edition)
Definition at line 56 of file Config.php.
| const METHOD_WPS_BML = 'wps_express_bml' |
PayPal Standard Bml - alias METHOD_WPP_BML
Definition at line 36 of file Config.php.
| const METHOD_WPS_EXPRESS = 'wps_express' |
PayPal Standard - alias METHOD_WPP_EXPRESS
Definition at line 31 of file Config.php.
| const PAYMENT_MARK_LARGE = 'large' |
Definition at line 91 of file Config.php.
| const PAYMENT_MARK_MEDIUM = 'medium' |
Definition at line 89 of file Config.php.
| const PAYMENT_MARK_SMALL = 'small' |
Definition at line 87 of file Config.php.
| const REFUND_TYPE_FULL = 'Full' |
#- #+ Refund types
Definition at line 128 of file Config.php.
| const REFUND_TYPE_PARTIAL = 'Partial' |
Definition at line 130 of file Config.php.
| const REQUIRE_BILLING_ADDRESS_ALL = 1 |
Definition at line 110 of file Config.php.
| const REQUIRE_BILLING_ADDRESS_NO = 0 |
#- #+ Require Billing Address
Definition at line 108 of file Config.php.
| const REQUIRE_BILLING_ADDRESS_VIRTUAL = 2 |
Definition at line 112 of file Config.php.
| const TRANSFER_CART_LINE_ITEMS = 'lineItemsEnabled' |
Paypal setting
Definition at line 166 of file Config.php.
| const TRANSFER_SHIPPING_OPTIONS = 'transferShippingOptions' |
Definition at line 167 of file Config.php.
| const WPS_TRANSPORT_IPN = 'ipn' |
#- #+ Payment data transfer methods (Standard)
Definition at line 146 of file Config.php.
| const WPS_TRANSPORT_IPN_PDT = 'ipn_n_pdt' |
Definition at line 150 of file Config.php.
| const WPS_TRANSPORT_PDT = 'pdt' |
Definition at line 148 of file Config.php.
| const XML_PATH_PAYPAL_EXPRESS_SKIP_ORDER_REVIEW_STEP_FLAG = 'payment/paypal_express/skip_order_review_step' |
#- Config path for enabling/disabling order review step in express checkout
Definition at line 174 of file Config.php.