Helper
GatewayCommandExceptionMessageFormatter
Magento\PaymentGraphQl\Helper\Error\MessageFormatters\GatewayCommandExceptionMessageFormatter
What it does
This helper class formats payment gateway command exceptions for GraphQL API responses.
When a payment gateway throws a CommandException during GraphQL operations, this formatter preserves the original error message and wraps it in a GraphQlInputException so meaningful payment errors are returned to the API consumer instead of generic error messages.
Public Methods
- getFormatted()