The command exited with code 0. Output: 113: const isPlayBridge = gatewayHost.includes('play-bridge.in') || gatewayHost.includes('play-bridge') || gatewayHost.includes('vishnurummy'); 114- const isSsbasePay = gatewayHost.includes('ssbase.net') || parsedUrl.pathname.includes('airpay'); 115- const isCashwaysPay = gatewayHost.includes('cashways.net') || gatewayHost.includes('eazypaytech'); 116- const isBifrostPay = gatewayHost.includes('bifrost-pay.com') || gatewayHost.includes('bifrost'); 117- const isXmdhPay = gatewayHost.includes('xmdh.link') || gatewayHost.includes('xmdh') || parsedUrl.pathname.includes('checkoutPage'); 118- const isCoinPay = gatewayHost.includes('coinsll.com') || gatewayHost.includes('coinpay'); 119- 120- let orderId = null; 121- let nonce = null; 122- let tenantId = null; 123- let gatewayApiUrl = `https://${gatewayHost}`; 124- let qrBuffer = null; 125- let expectedDate = null; 126- 127- if (isDirectUpi) { 128- let upiUrl = requestUrl.startsWith('upi://') ? requestUrl : ('upi://pay' + parsedUrl.search); 129- if (!upiUrl.startsWith('upi://pay?')) { 130- upiUrl = upiUrl.replace(/^upi:\/\/[^?]*\?/, 'upi://pay?'); 131- } 132- orderId = parsedUrl.searchParams.get('tr') || parsedUrl.searchParams.get('tid') || parsedUrl.searchParams.get('orderId') || parsedUrl.searchParams.get('order_id') || ('UPI' + Date.now()); 133- console.log(`[GATEWAY] Direct UPI gateway detected (${gatewayHost}). Order ID: ${orderId}, UPI: ${upiUrl}`); -- 562: } else if (isPlayBridge) { 563- let rawOrderNo = parsedUrl.searchParams.get('orderNo'); 564- if (!rawOrderNo) { 565- const segments = parsedUrl.pathname.split("/").filter(Boolean); 566- let last = segments[segments.length - 1] || ""; 567- last = last.replace(/\.html?$/i, ""); 568- rawOrderNo = decodeURIComponent(last).trim(); 569- } 570- 571- const clientInfo = { 572- deviceId: "unknown", 573- source: 1, 574- browser: "Chrome", 575- deviceType: "unknown", 576- deviceModel: "unknown", 577- deviceOsName: "Windows", 578- deviceOsVersion: "10" 579- }; 580- const headers = { 581- "X-Client-Info": Buffer.from(JSON.stringify(clientInfo)).toString("base64"), 582- "Origin": `https://${gatewayHost}`, -- 859: isPlayBridge, 860- isSsbasePay, 861- isCashwaysPay, 862- isBifrostPay, 863- isXmdhPay, 864- isCoinPay, 865- tenantId, 866- gatewayHost, 867- gatewayApiUrl 868- }; 869-} 870- 871-/** 872- * Uploads the UTR to the designated gateway. 873- * @param {object} session Session state of the user. 874- * @param {string} utr 12-digit UTR code. 875- */ 876-async function uploadUtr(session, utr) { 877: const { orderId, nonce, isGoldgo, isRynpp, isKivoPay, isIndiaPay, isEwalletPay, isBluePay, isUpiPayments, isPayflow, isDirectUpi, isHoneycomb, isPlayBridge, isSsbasePay, isCashwaysPay, isBifrostPay, isXmdhPay, isCoinPay, tenantId, gatewayHost, gatewayApiUrl } = session; 878- 879- if (isHoneycomb) { 880- console.log(`[GATEWAY] Uploading Honeycomb UTR: ${utr} for order: ${orderId}`); 881- const uploadRes = await fetch(`https://pay.honeycombpro.io/uploadUtr?orderId=${orderId}&utr=${utr}`); 882- const text = await uploadRes.text(); 883- console.log(`[GATEWAY] Honeycomb upload response:`, text); 884- return { code: 0, msg: "success" }; 885: } else if (isDirectUpi || isPlayBridge || isSsbasePay || isCashwaysPay || isXmdhPay || isCoinPay) { 886- console.log(`[GATEWAY] Direct UPI / PlayBridge / SsbasePay / Cashways / XmdhPay / CoinPay payment recorded for order ${orderId} with UTR ${utr}`); 887- return { code: 0, msg: "success" }; 888- } else if (isKivoPay) { 889- console.log(`[GATEWAY] Uploading KivoPay UTR: ${utr} for order: ${orderId}`); 890- const signStr = String(orderId) + String(nonce) + "5f3b2d9a7c1e4f8b0d6a7e9f3c2b1a0d" + String(utr); 891- const sign = crypto.createHash('md5').update(signStr).digest('hex').toUpperCase(); 892- 893- const uploadRes = await fetch(`https://${gatewayHost}/api/v1/payin/utr/verify`, { 894- method: 'POST', 895- headers: { 896- 'Content-Type': 'application/json', 897- 'Origin': `https://${gatewayHost}`, 898- 'Referer': `https://${gatewayHost}/`, 899- 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:151.0) Gecko/20100101 Firefox/151.0' 900- }, 901- body: JSON.stringify({ 902- orderId: orderId, 903- nonce: Number(nonce), 904- utr: utr, 905- sign: sign