Log in
Model

PaymentSdkRequest

Magento\PaymentServicesPaypal\Model\Api\PaymentSdkRequest

What it does

This class serves as a REST API endpoint handler that retrieves PayPal payment SDK configuration parameters needed to initialize the PayPal SDK on the frontend.

Developers use this to get SDK URLs and configuration based on location (like checkout, cart, product page) and optionally filter by payment method code.

It transforms raw SDK parameters from the management service into structured data transfer objects for API responses.

Public Methods

  • getByLocation()
  • getByLocationAndMethodCode()