Log in
Model

ConfigProvider

Magento\PaymentServicesPaypal\Model\ConfigProvider

What it does

This class provides configuration and initialization parameters for PayPal payment methods in Magento 2.

Developers use it to retrieve PayPal SDK script parameters, payment options, and method-specific configuration needed to render PayPal payment buttons and forms on checkout and product pages.

It handles caching of SDK parameters and integrates with Content Security Policy (CSP) for secure script loading.

Public Methods

  • getConfig()
  • getScriptParams()
  • getPaymentOptions()