<?php

define("FXH_PAY_SANDBOX", true);   // true = SANDBOX | false = LIVE

// ==========================
// 🔹 SANDBOX KEYS
// ==========================
define("NOW_SANDBOX_API_KEY",    "R8GSB3A-ZH5MWA9-NG1HE1W-42ATZPE");
define("NOW_SANDBOX_PUBLIC_KEY","7ca68b34-6fe1-4f44-8429-a7cae43ecd08");
define("NOW_SANDBOX_IPN_SECRET","rvM1eMXL1MYVZY618CPAqY8QHN9L3dD1");

// ==========================
// 🔹 LIVE KEYS
// ==========================
define("NOW_LIVE_API_KEY",    "N6023F5-3Z6MGYC-K7NTBA1-A0NEGAB");
define("NOW_LIVE_PUBLIC_KEY","dd45a5b2-ff71-47a3-8715-7f765ad7abfa");
define("NOW_LIVE_IPN_SECRET","i2lGVciDqd4+sBvnhJ4n6I4tvvtllsrN");

// ==========================
// SELECT GATEWAY MODE
// ==========================
if (FXH_PAY_SANDBOX) {
    define("NOWPAYMENTS_API_KEY",     NOW_SANDBOX_API_KEY);
    define("NOWPAYMENTS_PUBLIC_KEY", NOW_SANDBOX_PUBLIC_KEY);
    define("NOWPAYMENTS_IPN_SECRET", NOW_SANDBOX_IPN_SECRET);
    define("NOWPAYMENTS_API_URL",    "https://api-sandbox.nowpayments.io");
}
else {
    define("NOWPAYMENTS_API_KEY",     NOW_LIVE_API_KEY);
    define("NOWPAYMENTS_PUBLIC_KEY", NOW_LIVE_PUBLIC_KEY);
    define("NOWPAYMENTS_IPN_SECRET", NOW_LIVE_IPN_SECRET);
    define("NOWPAYMENTS_API_URL",    "https://api.nowpayments.io");
}

// ------------------------------------------------------------------
// COMPATIBILITY ALIAS (FIXES YOUR ERROR COMPLETELY)
// ------------------------------------------------------------------
define("NOWPAYMENTS_SANDBOX", FXH_PAY_SANDBOX);

define("NOWPAYMENTS_BASE_CURRENCY", "USD");



