OrderHelper
Magento\PaymentServicesPaypal\Helper\OrderHelper
What it does
This helper class provides utility methods for formatting and preparing order data for PayPal payment processing.
Developers use it to format amounts, retrieve L2/L3 card data for certain payment methods, generate line items and amount breakdowns, validate checkout locations, and configure shipping callbacks for PayPal transactions.
It ensures order data is correctly structured and validated before sending to PayPal's API.
Public Methods
- formatAmount()
- getL2Data()
- getL3Data()
- reserveAndGetOrderIncrementId()
- getLineItems()
- getAmountBreakdown()
- validateCheckoutLocation()
- getUserAction()
- getShippingPreference()
- getOrderUpdateCallbackConfig()