Log in
Model

ButtonType

Magento\PaymentServicesPaypal\Model\Adminhtml\Source\ButtonType

What it does

This class provides a dropdown list of PayPal button types available for configuration in Magento admin panel.

Administrators use this to select which button style (Buy, Checkout, Order, Pay, or Plain) should be displayed to customers during PayPal payment interactions.

It implements OptionSourceInterface to provide standardized options for system configuration fields.

Public Methods

  • toOptionArray()