Model
Cart
Magento\Paypal\Model\Cart
What it does
This class handles shopping cart data transformation for PayPal payment processing.
It validates and formats cart items, totals, taxes, shipping, and discounts to comply with PayPal's business logic requirements, including precision limitations and amount validation rules.
Developers use this when integrating PayPal payments to ensure cart data is properly structured before sending to PayPal's API.
Public Methods
- getAmounts()
- hasNegativeItemAmount()