PaymentFailuresInterface
Magento\Sales\Api\PaymentFailuresInterface
What it does
This interface defines a contract for handling payment gateway failures in Magento 2.
Developers would implement or use this interface to process and manage error scenarios when payment processing fails during checkout, such as logging errors, sending notifications, or triggering recovery workflows.
It accepts the cart ID, error message, and checkout type to properly handle the failure context.
Public Methods
- handle()