The command exited with code 0. Output: const MAX_FAST_ATTEMPTS = 12; // 12 × 15s = 3 minutes const fastInterval = setInterval(async () => { fastAttempt++; // Stop if max attempts reached or payment already processed const pending = getPendingPayments(); const stillPending = pending.find(p => p.orderId === orderId); if (!stillPending || fastAttempt >= MAX_FAST_ATTEMPTS) { clearInterval(fastInterval); return; } try { const now = new Date(); const pad = (n) => String(n).padStart(2, '0'); const fmt = (d) => `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())}`; const startDate = fmt(new Date(now.getTime() - 6 * 60 * 60 * 1000)); const endDate = fmt(new Date(now.getTime() + 1 * 60 * 60 * 1000)); let histRes = await fetch(`https://api.oeur39rmwe.com/session/member/deposit?startDate=${startDate}&endDate=${endDate}¤t=1&size=20`, { method: 'GET', headers: { 'Authorization': 'IND', 'Token': token, 'User-Agent': 'Mozilla/5.0' } }); if (!histRes.ok) return; let histJson = await histRes.json(); // Auto-refresh token if expired (604 or 10002) and retry if (histJson.code === 604 || histJson.code === 10002 || histJson.msg === 'Token expired' || histJson.message === 'Token expired') { console.log(`[FAST-CHECKER] Token expired (code ${histJson.code}). Refreshing...`); token = await refreshPaymentToken(); histRes = await fetch(`https://api.oeur39rmwe.com/session/member/deposit?startDate=${startDate}&endDate=${endDate}¤t=1&size=20`, { method: 'GET', headers: { 'Authorization': 'IND', 'Token': token, 'User-Agent': 'Mozilla/5.0' } }); if (!histRes.ok) return; histJson = await histRes.json(); } if (histJson.code !== 0 || !histJson.data || !histJson.data.records) return; const matched = histJson.data.records.find(r => r.serialNumber && r.serialNumber === serialNumber); if (matched) { const status = matched.status.toUpperCase(); if (status === 'SUCCESS' || status === 'APPROVED' || status === 'COMPLETED' || status === 'SUCCESSFUL') { clearInterval(fastInterval); console.log(`[FAST-CHECKER] Payment confirmed for Order ${orderId} on attempt ${fastAttempt}`); await checkPendingPayments(); // trigger full processing }