Interface
PaymentFailuresInterface
Magento\Sales\Api\PaymentFailuresInterface
What it does
This interface defines a contract for handling payment gateway failures in Magento 2.
Developers would use this to implement custom logic when payment processing fails, such as logging errors, sending notifications, or triggering recovery workflows.
It's typically invoked during checkout when a payment transaction is declined or encounters an error.
Public Methods
- handle()