The command exited with code 0. Output: headerData.payType = getSelectedPayType(); } return headerData; } function handleOrderStatus(order) { if (order.orderStatus === 1) { window.location.href = '/ok.html'; return true; } if (order.orderStatus === 2) { window.location.href = '/fail.html'; return true; } return false; } function openPay(order) { const payType = getSelectedPayType(); if (payType === 'paytmmp' && order.paytmUrl) { location.href = order.paytmUrl; -- } document.getElementById('amountDisplay').textContent = order.amount; document.getElementById('amountBtn').textContent = order.amount; if (handleOrderStatus(order)) return; if (source === 2) { openPay(order); } paying = false; } async function statusLoop() { if (!getOrderNo()) return; const order = await fetchOrder(0); if (order) handleOrderStatus(order); } document.getElementById('payList').addEventListener('click', (e) => { const li = e.target.closest('li[data-pay]'); if (!li) return; document.querySelectorAll('.pay-list li').forEach((el) => el.classList.remove('selected')); li.classList.add('selected'); }); document.getElementById('payBtn').addEventListener('click', () => { -- }) .finally(() => { getOrderInfo(1).finally(hideLoading); }); setInterval(statusLoop, 4000);