Model
ProcessableException
Magento\Paypal\Model\Api\ProcessableException
What it does
This exception class handles processable errors from PayPal API responses.
It maps specific PayPal error codes (like payment processing failures, country restrictions, or transaction issues) to user-friendly error messages that can be safely displayed to customers during checkout.
Developers use this to catch and present PayPal-specific errors in a customer-facing way.
Public Methods
- getUserMessage()