Log in
Helper

GatewayHttpClientExceptionMessageFormatter

Magento\PaymentGraphQl\Helper\Error\MessageFormatters\GatewayHttpClientExceptionMessageFormatter

What it does

This helper class formats error messages for payment gateway HTTP client exceptions in GraphQL responses.

When a payment gateway encounters an HTTP client issue during processing, this formatter ensures the original error message is preserved and returned as a GraphQlInputException, allowing developers to provide meaningful feedback to API consumers about payment processing failures.

Public Methods

  • getFormatted()