# yatra/3.0.16/app/PaymentGateways/GatewayUserMessages.php

Yatra – Travel Booking &amp; Tour Operator Software, version 3.0.16. 31 lines.

- Page: https://pluginprobe.com/plugins/yatra/3.0.16/code/app/PaymentGateways/GatewayUserMessages.php
- Raw: https://pluginprobe.com/plugins/yatra/3.0.16/raw/app/PaymentGateways/GatewayUserMessages.php
- Modified: 2026-04-14T03:47:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/yatra/3.0.16/code/app/PaymentGateways/GatewayUserMessages.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace Yatra\PaymentGateways;

/**
 * End-user safe messages for payment gateway errors (no internal config hints).
 */
final class GatewayUserMessages
{
    public static function gatewayNotConfigured(PaymentGatewayInterface $gateway): string
    {
        $title = self::displayTitle($gateway);

        return sprintf(
            /* translators: %s: Payment gateway display name, e.g. Square, Stripe */
            __('The selected gateway (%s) is not properly configured. Please contact your website administrator.', 'yatra'),
            $title
        );
    }

    private static function displayTitle(PaymentGatewayInterface $gateway): string
    {
        $config = $gateway->getConfig();
        $custom = isset($config['title']) ? trim((string) $config['title']) : '';

        return $custom !== '' ? $custom : $gateway->getTitle();
    }
}

```
