<?php
/**
 * Copyright © Simplyin. All rights reserved.
 */
declare(strict_types=1);

namespace Simplyin\Payment;

/**
 * Build-time environment binding for the backend API.
 *
 * The target Simply.IN backend is fixed HERE, in code, and set per build/branch at deploy time.
 * It is intentionally NOT an admin setting and NOT in core_config_data, so a merchant cannot point
 * their shop at the wrong (or another tenant's) backend from the admin panel.
 *
 * Both constants are pinned together, for the branch being built, by the deploy pipeline — the
 * dev/stage/preprod hostnames are sourced from GH Actions repo variables and never committed here.
 */
class Environment
{
    /**
     * Active backend environment label (dev|stage|preprod|prod). Informational — shown
     * alongside the plugin version in the admin (see PluginVersion) — overwritten per branch
     * by the deploy pipeline.
     */
    public const APP_ENV = 'prod';

    /**
     * Backend API base URL for the active environment (no trailing slash; includes the /api
     * prefix). Overwritten per branch by the deploy pipeline, together with APP_ENV.
     */
    public const BASE_URL = 'https://prod.backend.simply.in/api';
}
