Log in
Model

PaymentOrderRequest

Magento\PaymentServicesPaypal\Model\Api\PaymentOrderRequest

What it does

This class serves as a REST API adapter for PayPal payment order operations in Magento 2.

It handles both logged-in customer and guest checkout scenarios, providing methods to create, retrieve, and synchronize PayPal payment orders.

Developers would use this when implementing PayPal payment flows, as it converts masked cart IDs for guests and delegates actual payment processing to the underlying management service.

Public Methods

  • create()
  • createGuest()
  • get()
  • getForGuest()
  • sync()
  • syncForGuest()