Log in
Model

SdkUrl

Magento\Paypal\Model\SdkUrl

What it does

This class generates the PayPal JavaScript SDK URL with proper query parameters based on store configuration.

Developers use it to dynamically construct the SDK URL with the correct client ID, locale, currency, enabled/disabled payment methods, and other settings needed to embed PayPal Smart Buttons and messaging on the storefront.

Public Methods

  • getUrl()
  • setQueryParam()