Class Mage_Paypal_Model_Config
Config model that is aware of all Mage_Paypal payment methods Works with PayPal-specific system configuration
Direct known subclasses
Mage_XmlConnect_Model_Payment_Method_Paypal_ConfigCopyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Located at code/core/Mage/Paypal/Model/Config.php
public
|
|
public
|
|
public
string
|
|
public
|
|
public
boolean
|
#
isMethodActive( string $method )
Check whether method active in configuration and supported for merchant country or not |
public
boolean
|
#
isMethodAvailable( string $methodCode = null )
Check whether method available for checkout or not Logic based on merchant country, methods dependence |
public
string|null
|
|
protected
string
|
#
_prepareValue( string $key, string $value )
Perform additional config value preparation and return new value if needed |
public
array
|
|
public
array
|
|
public
string
|
#
getMerchantCountry( )
Return merchant country code, use default country if it not specified in General settings |
public
boolean
|
#
isMethodSupportedForCountry( mixed $method = null, mixed $countryCode = null )
Check whether method supported for specified country or not Use $_methodCode and merchant country by default |
public
array
|
#
getCountryMethods( string $countryCode = null )
Return list of allowed methods for specified country iso code |
public
string
|
#
getExpressCheckoutStartUrl( string $token )
Get url for dispatching customer to express checkout start |
public
string
|
#
getExpressCheckoutEditUrl( mixed $token )
Get url that allows to edit checkout details on paypal side |
public
string
|
#
getExpressCheckoutCompleteUrl( string $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. |
public
string
|
|
public
string
|
|
public
boolean
|
|
public
|
#
getExpressCheckoutShortcutImageUrl( string $localeCode, float $orderTotal = null, string $pal = null )
Express checkout shortcut pic URL getter PayPal will ignore "pal", if there is no total amount specified |
public
|
#
getPaymentMarkImageUrl( string $localeCode, float $orderTotal = null, string $pal = null, string $staticSize = null )
Get PayPal "mark" image URL Supposed to be used on payment methods selection $staticSize is applicable for static images only |
public
|
#
getPaymentMarkWhatIsPaypalUrl(
Get "What Is PayPal" localized URL Supposed to be used with "mark" as popup window |
public
|
#
getSolutionImageUrl( string $localeCode, boolean $isVertical = false, boolean $isEcheck = false )
Getter for Solution banner images |
public
|
|
public
array
|
|
public
string|boolean
|
#
getAdditionalOptionsLogoUrl( string $localeCode, string $type = false )
Return PayPal logo URL with additional options |
public
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
string|null
|
|
public
array
|
#
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 |
public
array
|
|
public
boolean
|
#
shouldAskToCreateBillingAgreement( )
Whether to ask customer to create billing agreements Unilateral payments are incompatible with the billing agreements |
public
boolean
|
#
shouldUseUnilateralPayments( )
Check whether only Unilateral payments (Accelerated Boarding) possible for Express method or not |
public
boolean
|
|
public
array
|
|
public
array
|
|
public
array
|
#
getWppPeCcTypesAsOptionArray( )
Return list of supported credit card types by Paypal Direct (Payflow Edition) gateway |
public
array
|
#
getPayflowproCcTypesAsOptionArray( )
Return list of supported credit card types by Payflow Pro gateway |
public static
boolean
|
#
getIsCreditCardMethod( string $code )
Check whether the specified payment method is a CC-based one |
public
boolean
|
|
public
|
#
exportExpressCheckoutStyleSettings( Varien_Object $to )
Export page style current settings to specified object |
protected
|
#
_getDynamicImageUrl( string $type, string $localeCode, float $orderTotal, string $pal )
Dynamic PayPal image URL getter Also can render dynamic Acceptance Mark |
protected
string
|
#
_getSupportedLocaleCode( string $localeCode = null )
Check whether specified locale code is supported. Fallback to en_US |
protected
string|null
|
#
_getSpecificConfigPath( string $fieldName )
Map any supported payment method into a config path by specified field name |
private
string|null
|
#
_matchBnCountryCode( mixed $code )
Check wheter specified country code is supported by build notation codes for specific countries |
protected
string|null
|
|
protected
string|null
|
|
protected
string|null
|
|
protected
string|null
|
|
protected
string|null
|
|
protected
string|null
|
|
protected
string|null
|
|
protected
string|null
|
|
public
array
|
|
public
string
|
string |
METHOD_WPS
|
'paypal_standard' |
#
PayPal Standard |
string |
METHOD_WPP_EXPRESS
|
'paypal_express' |
#
PayPal Website Payments Pro - Express Checkout |
string |
METHOD_WPP_DIRECT
|
'paypal_direct' |
#
PayPal Website Payments Pro - Direct Payments |
string |
METHOD_WPP_PE_DIRECT
|
'paypaluk_direct' |
#
Direct Payments (Payflow Edition) |
string |
METHOD_WPP_PE_EXPRESS
|
'paypaluk_express' |
#
Express Checkout (Payflow Edition) |
string |
METHOD_PAYFLOWPRO
|
'verisign' |
#
Payflow Pro Gateway |
string |
METHOD_PAYFLOWLINK
|
'payflow_link' |
|
string |
METHOD_PAYFLOWADVANCED
|
'payflow_advanced' |
|
string |
METHOD_HOSTEDPRO
|
'hosted_pro' |
|
string |
METHOD_BILLING_AGREEMENT
|
'paypal_billing_agreement' |
|
string |
EC_FLAVOR_DYNAMIC
|
'dynamic' |
#
Buttons and images |
string |
EC_FLAVOR_STATIC
|
'static' |
|
string |
EC_BUTTON_TYPE_SHORTCUT
|
'ecshortcut' |
|
string |
EC_BUTTON_TYPE_MARK
|
'ecmark' |
|
string |
PAYMENT_MARK_37x23
|
'37x23' |
|
string |
PAYMENT_MARK_50x34
|
'50x34' |
|
string |
PAYMENT_MARK_60x38
|
'60x38' |
|
string |
PAYMENT_MARK_180x113
|
'180x113' |
|
string |
DEFAULT_LOGO_TYPE
|
'wePrefer_150x60' |
|
string |
PAYMENT_ACTION_SALE
|
'Sale' |
#
Payment actions |
string |
PAYMENT_ACTION_ORDER
|
'Order' |
|
string |
PAYMENT_ACTION_AUTH
|
'Authorization' |
|
integer |
AUTHORIZATION_AMOUNT_ONE
|
1 |
|
integer |
AUTHORIZATION_AMOUNT_FULL
|
2 |
|
integer |
REQUIRE_BILLING_ADDRESS_NO
|
0 |
#
Require Billing Address |
integer |
REQUIRE_BILLING_ADDRESS_ALL
|
1 |
|
integer |
REQUIRE_BILLING_ADDRESS_VIRTUAL
|
2 |
|
string |
FRAUD_ACTION_ACCEPT
|
'Acept' |
#
Fraud management actions |
string |
FRAUD_ACTION_DENY
|
'Deny' |
|
string |
REFUND_TYPE_FULL
|
'Full' |
#
Refund types |
string |
REFUND_TYPE_PARTIAL
|
'Partial' |
|
string |
EC_SOLUTION_TYPE_SOLE
|
'Sole' |
#
Express Checkout flows |
string |
EC_SOLUTION_TYPE_MARK
|
'Mark' |
|
string |
WPS_TRANSPORT_IPN
|
'ipn' |
#
Payment data transfer methods (Standard) |
string |
WPS_TRANSPORT_PDT
|
'pdt' |
|
string |
WPS_TRANSPORT_IPN_PDT
|
'ipn_n_pdt' |
|
string |
EC_BA_SIGNUP_AUTO
|
'auto' |
#
Billing Agreement Signup |
string |
EC_BA_SIGNUP_ASK
|
'ask' |
|
string |
EC_BA_SIGNUP_NEVER
|
'never' |
public
string
|
$centinelDefaultApiUrl | 'https://paypal.cardinalcommerce.com/maps/txns.asp' |
#
Default URL for centinel API (PayPal Direct) |
protected
string
|
$_methodCode | null |
#
Current payment method code |
protected
integer
|
$_storeId | null |
#
Current store id |
protected
array
|
$_buildNotationPPMap | array(
'paypal_standard' => 'WPS',
'paypal_express' => 'EC',
'paypal_direct' => 'DP',
'paypaluk_express' => 'EC',
'paypaluk_direct' => 'DP',
) |
#
Instructions for generating proper BN code |
protected
array
|
$_ecStyleConfigMap | array(
'page_style' => 'page_style',
'paypal_hdrimg' => 'hdrimg',
'paypal_hdrbordercolor' => 'hdrbordercolor',
'paypal_hdrbackcolor' => 'hdrbackcolor',
'paypal_payflowcolor' => 'payflowcolor',
) |
#
Style system config map (Express Checkout) |
protected
array
|
$_supportedCurrencyCodes | array('AUD', 'CAD', 'CZK', 'DKK', 'EUR', 'HKD', 'HUF', 'ILS', 'JPY', 'MXN',
'NOK', 'NZD', 'PLN', 'GBP', 'SGD', 'SEK', 'CHF', 'USD', 'TWD', 'THB') |
#
Currency codes supported by PayPal methods |
protected
array
|
$_supportedCountryCodes | array(
'AE','AR','AT','AU','BE','BG','BR','CA','CH','CL','CR','CY','CZ','DE','DK','DO','EC','EE','ES','FI','FR','GB',
'GF','GI','GP','GR','HK','HU','ID','IE','IL','IN','IS','IT','JM','JP','KR','LI','LT','LU','LV','MQ','MT','MX',
'MY','NL','NO','NZ','PH','PL','PT','RE','RO','SE','SG','SI','SK','SM','TH','TR','TW','US','UY','VE','VN','ZA') |
#
Merchant country supported by PayPal |
protected
array
|
$_supportedBuyerCountryCodes | array(
'AF ', 'AX ', 'AL ', 'DZ ', 'AS ', 'AD ', 'AO ', 'AI ', 'AQ ', 'AG ', 'AR ', 'AM ', 'AW ', 'AU ', 'AT ', 'AZ ',
'BS ', 'BH ', 'BD ', 'BB ', 'BY ', 'BE ', 'BZ ', 'BJ ', 'BM ', 'BT ', 'BO ', 'BA ', 'BW ', 'BV ', 'BR ', 'IO ',
'BN ', 'BG ', 'BF ', 'BI ', 'KH ', 'CM ', 'CA ', 'CV ', 'KY ', 'CF ', 'TD ', 'CL ', 'CN ', 'CX ', 'CC ', 'CO ',
'KM ', 'CG ', 'CD ', 'CK ', 'CR ', 'CI ', 'HR ', 'CU ', 'CY ', 'CZ ', 'DK ', 'DJ ', 'DM ', 'DO ', 'EC ', 'EG ',
'SV ', 'GQ ', 'ER ', 'EE ', 'ET ', 'FK ', 'FO ', 'FJ ', 'FI ', 'FR ', 'GF ', 'PF ', 'TF ', 'GA ', 'GM ', 'GE ',
'DE ', 'GH ', 'GI ', 'GR ', 'GL ', 'GD ', 'GP ', 'GU ', 'GT ', 'GG ', 'GN ', 'GW ', 'GY ', 'HT ', 'HM ', 'VA ',
'HN ', 'HK ', 'HU ', 'IS ', 'IN ', 'ID ', 'IR ', 'IQ ', 'IE ', 'IM ', 'IL ', 'IT ', 'JM ', 'JP ', 'JE ', 'JO ',
'KZ ', 'KE ', 'KI ', 'KP ', 'KR ', 'KW ', 'KG ', 'LA ', 'LV ', 'LB ', 'LS ', 'LR ', 'LY ', 'LI ', 'LT ', 'LU ',
'MO ', 'MK ', 'MG ', 'MW ', 'MY ', 'MV ', 'ML ', 'MT ', 'MH ', 'MQ ', 'MR ', 'MU ', 'YT ', 'MX ', 'FM ', 'MD ',
'MC ', 'MN ', 'MS ', 'MA ', 'MZ ', 'MM ', 'NA ', 'NR ', 'NP ', 'NL ', 'AN ', 'NC ', 'NZ ', 'NI ', 'NE ', 'NG ',
'NU ', 'NF ', 'MP ', 'NO ', 'OM ', 'PK ', 'PW ', 'PS ', 'PA ', 'PG ', 'PY ', 'PE ', 'PH ', 'PN ', 'PL ', 'PT ',
'PR ', 'QA ', 'RE ', 'RO ', 'RU ', 'RW ', 'SH ', 'KN ', 'LC ', 'PM ', 'VC ', 'WS ', 'SM ', 'ST ', 'SA ', 'SN ',
'CS ', 'SC ', 'SL ', 'SG ', 'SK ', 'SI ', 'SB ', 'SO ', 'ZA ', 'GS ', 'ES ', 'LK ', 'SD ', 'SR ', 'SJ ', 'SZ ',
'SE ', 'CH ', 'SY ', 'TW ', 'TJ ', 'TZ ', 'TH ', 'TL ', 'TG ', 'TK ', 'TO ', 'TT ', 'TN ', 'TR ', 'TM ', 'TC ',
'TV ', 'UG ', 'UA ', 'AE ', 'GB ', 'US ', 'UM ', 'UY ', 'UZ ', 'VU ', 'VE ', 'VN ', 'VG ', 'VI ', 'WF ', 'EH ',
'YE ', 'ZM ', 'ZW'
) |
#
Buyer country supported by PayPal |
protected
array
|
$_supportedImageLocales | array('de_DE', 'en_AU', 'en_GB', 'en_US', 'es_ES', 'es_XC', 'fr_FR',
'fr_XC', 'it_IT', 'ja_JP', 'nl_NL', 'pl_PL', 'zh_CN', 'zh_XC',
) |
#
Locale codes supported by misc images (marks, shortcuts etc) |