Config
Magento\Paypal\Model\Config
What it does
This class manages all configuration settings for PayPal payment methods in Magento 2.
Developers use it to retrieve PayPal-specific settings like API credentials, button styles, payment actions, supported countries/currencies, and URLs for PayPal services.
It provides methods to check method availability, generate PayPal redirect URLs, and export configuration for different PayPal payment options like Express Checkout, Payflow Pro, and Bill Me Later.
Public Methods
- isMethodAvailable()
- getSupportedMerchantCountryCodes()
- getSupportedBuyerCountryCodes()
- getMerchantCountry()
- isMethodSupportedForCountry()
- getCountryMethods()
- getPayPalBasicStartUrl()
- isOrderReviewStepDisabled()
- getExpressCheckoutStartUrl()
- getExpressCheckoutOrderUrl()
- getExpressCheckoutEditUrl()
- getExpressCheckoutCompleteUrl()
- getStartBillingAgreementUrl()
- getPaypalUrl()
- getPayPalIpnUrl()
- areButtonsDynamic()
- getExpressCheckoutShortcutImageUrl()
- getExpressCheckoutInContextImageUrl()
- getPaymentMarkImageUrl()
- getPaymentMarkWhatIsPaypalUrl()
- getSolutionImageUrl()
- getPaymentFormLogoUrl()
- getAdditionalOptionsLogoTypes()
- getAdditionalOptionsLogoUrl()
- getExpressCheckoutButtonFlavors()
- getExpressCheckoutButtonTypes()
- getPaymentActions()
- getRequireBillingAddressOptions()
- getPaymentAction()
- getExpressCheckoutSolutionTypes()
- getExpressCheckoutBASignupOptions()
- shouldAskToCreateBillingAgreement()
- getWpsPaymentDeliveryMethods()
- getWppCcTypesAsOptionArray()
- getWppPeCcTypesAsOptionArray()
- getPayflowproCcTypesAsOptionArray()
- getIsCreditCardMethod()
- isCurrencyCodeSupported()
- exportExpressCheckoutStyleSettings()
- getApiAuthenticationMethods()
- getApiCertificate()
- getBmlPublisherId()
- getBmlDisplay()
- getBmlPosition()
- getBmlSize()
- getPayLaterConfigValue()
- getCspNonce()