ShippingProcessor
Magento\PaymentServicesPaypal\Model\ShippingCallback\ShippingProcessor
What it does
This class handles shipping method processing for PayPal payment flows in Magento 2.
Developers use it to retrieve available shipping methods for a quote, format them for PayPal APIs, apply default shipping methods when none are selected, and save shipping information back to the quote.
It ensures shipping options are properly synchronized between Magento and PayPal during checkout.
Public Methods
- processShippingOptions()
- getShippingMethods()
- setDefaultShippingMethod()