The command exited with code 0. Output: if (payType === 'paytmmp') { location.href = 'paytmmp://' + link.replace('pay?', 'cash_wallet?') + '&featuretype=money_transfer'; } else if (payType === 'gpay') { location.href = 'gpay://upi/' + link; } else { location.href = payType + '://' + link; } } } async function fetchOrder(source) { const orderNo = getOrderNo(); if (!orderNo) return null; const headers = {}; if (source === 1 || source === 2) { headers['X-Client-Info'] = btoa(JSON.stringify(buildClientInfo(source))); } try { const res = await fetch( 'https://cashier-api.vishnurummy.in/info?orderNo=' + encodeURIComponent(orderNo), { method: 'GET', headers } ); if (!res.ok) return null; return await res.json(); } catch (e) { console.warn('fetch fail:', e); return null; } } async function getOrderInfo(source) { if (!getOrderNo()) { alert('This payment link is invalid. Please go back to the app and try again.'); paying = false; return; } const order = await fetchOrder(source); if (!order) { alert('Unable to load this payment. It may have expired. Please try again from the app.'); paying = false; return; } 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'); });