Log in
Model

SdkParams

Magento\PaymentServicesPaypal\Model\Adminhtml\SdkParams

What it does

This class generates SDK parameters required to load the PayPal JavaScript SDK in the Magento admin checkout context.

Developers use this when integrating PayPal payment methods in admin order creation, as it configures hosted fields for credit card payments and determines which payment options (PayPal Credit, Venmo) should be available.

The class includes caching to avoid repeatedly generating the same parameters.

Public Methods

  • getSdkParams()