Log in
Model

AbstractConfig

Magento\Paypal\Model\AbstractConfig

What it does

This abstract class provides base configuration management for PayPal payment methods in Magento 2.

Developers extend this class when creating new PayPal payment method configurations, as it handles retrieving payment settings from store configuration, checking if methods are active and available, and managing API credentials.

It centralizes common PayPal configuration logic like payment actions, API availability checks, and build notation codes.

Public Methods

  • setMethodInstance()
  • setMethod()
  • getMethodCode()
  • setStoreId()
  • getValue()
  • setMethodCode()
  • setPathPattern()
  • shouldUseUnilateralPayments()
  • isWppApiAvailabe()
  • isWppApiAvailable()
  • isMethodAvailable()
  • isMethodActive()
  • isMethodSupportedForCountry()
  • getBuildNotationCode()