The command exited with code 0. Output: // Show loading spinner/text or reuse pre-existing message let loadMsg = preExistingLoadMsg; if (!loadMsg) { loadMsg = await ctx.reply(`⏳ Generating secure payment QR for ₹${amount}... Please wait.`, { parse_mode: 'HTML' }); } let requestUrl = null; let gatewayHost = null; try { // Step 0: Get the current balance BEFORE transaction to detect increase let oldBalance = 0; try { console.log(`[PAYMENT] Fetching current wallet balance...`); const balRes = await fetch('https://api.oeur39rmwe.com/session/memberMultiWallet', { method: 'GET', headers: { 'Authorization': 'IND', 'Token': token, 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:151.0) Gecko/20100101 Firefox/151.0' } }); if (balRes.ok) { const balJson = await balRes.json(); if (balJson.code === 0 && balJson.data) { const balData = JSON.parse(balJson.data); oldBalance = Number(balData.INR.Balance || 0); console.log(`[PAYMENT] Pre-transaction Balance: ₹${oldBalance}`); } else { console.warn(`[PAYMENT WARNING] Balance API returned code ${balJson.code}: ${balJson.msg}`); } } else { console.warn(`[PAYMENT WARNING] Balance API HTTP error: ${balRes.status}`); } } catch (e) { console.error("Error:", e); console.error(`[PAYMENT WARNING] Failed to fetch pre-transaction balance:`, e.message); } // Step 1: Submit Payment Request console.log(`[PAYMENT] Submitting payment order for ₹${amount} to cashier API...`);