Helper
Checkout
Magento\Paypal\Helper\Checkout
What it does
This helper class manages checkout workflow operations for PayPal payment methods.
Developers use it to cancel the current order with a comment and restore the shopping cart quote, typically when a PayPal payment fails or is cancelled by the customer during checkout.
Public Methods
- cancelCurrentOrder()
- restoreQuote()