{"File":"/root/aadharbot/.env","LineNumber":18,"LineContent":"GAME_PAYMENT_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJkYXRhIjoie1wiczNcIjpcIjcyNTg4OTA0MjJcIixcInM0XCI6XCJXRUJcIixcInM1XCI6NSxcInMxMVwiOlwiTk9STUFMXCIsXCJzNlwiOjUsXCJzN1wiOjAsXCJzOFwiOjUsXCJzOVwiOlwiSU5EXCIsXCJzMVwiOjIwMzcyMDk5ODIxMjIxOTI4OTgsXCJzMlwiOlwiMTc4ODc5MDU0ODE4NVwifSIsImV4cCI6MTgzMTk5MDU0OH0.fboMoRKL_HuMZW8ZGrOKRIILLu2mum1WyeYLIRAArAI"} {"File":"/root/aadharbot/check_payments.js","LineNumber":5,"LineContent":" const token = process.env.GAME_PAYMENT_TOKEN;"} {"File":"/root/aadharbot/node_modules/@types/node/http2.d.ts","LineNumber":2288,"LineContent":" const HTTP_STATUS_PAYMENT_REQUIRED: number;"} {"File":"/root/aadharbot/node_modules/image-q/node_modules/@types/node/http2.d.ts","LineNumber":1940,"LineContent":" const HTTP_STATUS_PAYMENT_REQUIRED: number;"} {"File":"/root/aadharbot/index.js","LineNumber":3140,"LineContent":" console.log(`[PAYMENT] User ${userId} selected ${planLabel} Plan (₹${amount})`);"} {"File":"/root/aadharbot/index.js","LineNumber":4030,"LineContent":"let cachedPaymentToken = process.env.GAME_PAYMENT_TOKEN;"} {"File":"/root/aadharbot/index.js","LineNumber":4033,"LineContent":" console.log(`[PAYMENT] Attempting automatic login to refresh payment token...`);"} {"File":"/root/aadharbot/index.js","LineNumber":4072,"LineContent":" console.log(`[PAYMENT] Automatic login successful! New token retrieved.`);"} {"File":"/root/aadharbot/index.js","LineNumber":4078,"LineContent":" console.error(`[PAYMENT ERROR] Automatic login failed:`, err.message);"} {"File":"/root/aadharbot/index.js","LineNumber":4087,"LineContent":" process.env.GAME_PAYMENT_TOKEN = freshToken;"} {"File":"/root/aadharbot/index.js","LineNumber":4092,"LineContent":" const regex = /GAME_PAYMENT_TOKEN=.*/;"} {"File":"/root/aadharbot/index.js","LineNumber":4094,"LineContent":" envContent = envContent.replace(regex, `GAME_PAYMENT_TOKEN=${freshToken}`);"} {"File":"/root/aadharbot/index.js","LineNumber":4096,"LineContent":" console.log(`[PAYMENT] Updated .env file with fresh GAME_PAYMENT_TOKEN.`);"} {"File":"/root/aadharbot/index.js","LineNumber":4101,"LineContent":" console.error(`[PAYMENT WARNING] Failed to write fresh token to .env file:`, e.message);"} {"File":"/root/aadharbot/index.js","LineNumber":4105,"LineContent":" console.error(`[PAYMENT ERROR] Failed to refresh payment token, using cached:`, err.message);"} {"File":"/root/aadharbot/index.js","LineNumber":4106,"LineContent":" return cachedPaymentToken || process.env.GAME_PAYMENT_TOKEN;"} {"File":"/root/aadharbot/index.js","LineNumber":4113,"LineContent":" console.log(`\\n--- [PAYMENT START] User: ${userId} requesting custom amount ₹${amount} (Plan: ${planType}) ---`);"} {"File":"/root/aadharbot/index.js","LineNumber":4116,"LineContent":" console.error(`[PAYMENT ERROR] GAME_PAYMENT_TOKEN not configured or failed to refresh!`);"} {"File":"/root/aadharbot/index.js","LineNumber":4133,"LineContent":" console.log(`[PAYMENT] Fetching current wallet balance...`);"} {"File":"/root/aadharbot/index.js","LineNumber":4147,"LineContent":" console.log(`[PAYMENT] Pre-transaction Balance: ₹${oldBalance}`);"} {"File":"/root/aadharbot/index.js","LineNumber":4149,"LineContent":" console.warn(`[PAYMENT WARNING] Balance API returned code ${balJson.code}: ${balJson.msg}`);"} {"File":"/root/aadharbot/index.js","LineNumber":4152,"LineContent":" console.warn(`[PAYMENT WARNING] Balance API HTTP error: ${balRes.status}`);"} {"File":"/root/aadharbot/index.js","LineNumber":4156,"LineContent":" console.error(`[PAYMENT WARNING] Failed to fetch pre-transaction balance:`, e.message);"} {"File":"/root/aadharbot/index.js","LineNumber":4160,"LineContent":" console.log(`[PAYMENT] Submitting payment order for ₹${amount} to cashier API...`);"} {"File":"/root/aadharbot/index.js","LineNumber":4182,"LineContent":" console.warn(`[PAYMENT WARNING] Failed to query deposit index:`, depErr.message);"} {"File":"/root/aadharbot/index.js","LineNumber":4191,"LineContent":" console.log(`[PAYMENT] Attempting paymentId ${pid} for ₹${amount} (${i + 1}/${candidatePaymentIds.length})...`);"} {"File":"/root/aadharbot/index.js","LineNumber":4205,"LineContent":" console.log(`[PAYMENT] Submit API response (paymentId=${pid}):`, JSON.stringify(resJson));"} {"File":"/root/aadharbot/index.js","LineNumber":4220,"LineContent":" console.warn(`[PAYMENT WARNING] paymentId ${pid} failed:`, err.message);"} {"File":"/root/aadharbot/index.js","LineNumber":4232,"LineContent":" console.log(`[PAYMENT] Processing checkout URL: ${requestUrl}`);"} {"File":"/root/aadharbot/index.js","LineNumber":4264,"LineContent":" console.log(`[PAYMENT] upi-payments.com detected. Setting serialNumber = orderId: ${serialNumber}`);"} {"File":"/root/aadharbot/index.js","LineNumber":4268,"LineContent":" console.log(`[PAYMENT] Fetching Serial Number (Attempt ${attempt}/10)...`);"} {"File":"/root/aadharbot/index.js","LineNumber":4299,"LineContent":" console.log(`[PAYMENT] Successfully matched record on attempt ${attempt}. Serial: ${serialNumber}, Date: ${depositTime}`);"} {"File":"/root/aadharbot/index.js","LineNumber":4302,"LineContent":" console.log(`[PAYMENT] Attempt ${attempt}: Order not yet listed in history.`);"} {"File":"/root/aadharbot/index.js","LineNumber":4308,"LineContent":" console.error(`[PAYMENT WARNING] Attempt ${attempt} failed to fetch serialNumber:`, e.message);"} {"File":"/root/aadharbot/index.js","LineNumber":4408,"LineContent":" console.log(`[PAYMENT SUCCESS] QR Code sent to user ${userId}. Session set to WAITING_FOR_UTR.`);"} {"File":"/root/aadharbot/index.js","LineNumber":4411,"LineContent":" console.error(`[PAYMENT ERROR] Exception:`, err.message);"} {"File":"/root/aadharbot/index.js","LineNumber":4444,"LineContent":" const logMsg = `⚠️ \u003cb\u003e[PAYMENT ${isGatewayBusy ? 'GATEWAY BUSY' : 'REQUEST FAILED'}]\u003c/b\u003e\\n` +"} {"File":"/root/aadharbot/index.js","LineNumber":4614,"LineContent":" let token = cachedPaymentToken || process.env.GAME_PAYMENT_TOKEN;"} {"File":"/root/aadharbot/index.js","LineNumber":4672,"LineContent":" console.error(`[PAYMENT ERROR] UTR processing failed:`, err.message);"} {"File":"/root/aadharbot/index.js","LineNumber":4678,"LineContent":"const PAYMENTS_FILE = 'payments.json';"} {"File":"/root/aadharbot/index.js","LineNumber":4681,"LineContent":" if (!fs.existsSync(PAYMENTS_FILE)) return [];"} {"File":"/root/aadharbot/index.js","LineNumber":4683,"LineContent":" return JSON.parse(fs.readFileSync(PAYMENTS_FILE, 'utf8'));"} {"File":"/root/aadharbot/index.js","LineNumber":4691,"LineContent":" fs.writeFileSync(PAYMENTS_FILE, JSON.stringify(payments, null, 2));"} {"File":"/root/aadharbot/index.js","LineNumber":4716,"LineContent":" let token = cachedPaymentToken || process.env.GAME_PAYMENT_TOKEN;"} {"File":"/root/aadharbot/index.js","LineNumber":4900,"LineContent":" : `🔔 \u003cb\u003ePAYMENT AUTO-CREDITED\u003c/b\u003e 🔔\\n` +"} {"File":"/root/aadharbot/index.js","LineNumber":4919,"LineContent":" const successNotif = `✅ \u003cb\u003eUTR VERIFIED — PAYMENT SUCCESSFUL\u003c/b\u003e\\n` +"} {"File":"/root/aadharbot/index.js","LineNumber":4942,"LineContent":" const failureMsg = `❌ \u003cb\u003ePENDING PAYMENT REJECTED\u003c/b\u003e ❌\\n` +"}