Log in
Model

SmartButtonConfig

Magento\Paypal\Model\SmartButtonConfig

What it does

This class provides configuration settings for PayPal Smart Payment Buttons, which are the modern in-context checkout buttons displayed on product pages, cart pages, and checkout.

Developers use this class to retrieve button styling options (size, color, shape, label), SDK URLs, and display settings based on store configuration and page context.

It handles locale-specific features like installment payment options for supported countries.

Public Methods

  • getConfig()