Checkout
Magento\PaymentServicesPaypal\Model\SmartButtons\Checkout
What it does
This class manages the PayPal Smart Buttons checkout flow in Magento 2, handling quote updates, PayPal order creation, shipping method changes, and order placement.
Developers use this when implementing or customizing PayPal payment integration for cart, product page, or alternative payment methods like Apple Pay, Google Pay, and Venmo.
It coordinates between Magento's quote/order system and PayPal's payment services.
Public Methods
- updateQuote()
- createPayPalOrder()
- updateShippingMethod()
- placeOrder()
- getQuote()
- unsetQuote()
- validateQuote()
- setLocation()
- getLocation()
- getSuccessPageUri()