Model
CancellationService
Magento\PaymentServicesPaypal\Model\CancellationService
What it does
This service handles canceling PayPal orders and voiding authorization transactions when payment processing fails or encounters technical issues.
Developers use this to automatically clean up orders and payment authorizations that couldn't be completed successfully, either from the storefront or admin panel, ensuring the quote can be reused for a new order attempt.
Public Methods
- execute()
- executeForAdmin()