Log in
Model

PaypalOrderRequestBuilder

Magento\PaymentServicesPaypal\Model\PaypalOrderRequestBuilder

What it does

This class constructs the request body payload for creating and updating PayPal orders through the Payment Services API.

Developers use this builder when integrating PayPal payment functionality, as it assembles all necessary order data including amounts, addresses, payment sources, line items, and various PayPal-specific configurations from quote and order information.

Public Methods

  • buildCreateRequestBody()
  • buildUpdateRequestBody()