The command exited with code 0. Output: 870: * Uploads the UTR to the designated gateway. 872: * @param {string} utr 12-digit UTR code. 874:async function uploadUtr(session, utr) { 878: console.log(`[GATEWAY] Direct UPI / PlayBridge / SsbasePay / Cashways / XmdhPay / CoinPay payment recorded for order ${orderId} with UTR ${utr}`); 881: console.log(`[GATEWAY] Uploading KivoPay UTR: ${utr} for order: ${orderId}`); 882: const signStr = String(orderId) + String(nonce) + "5f3b2d9a7c1e4f8b0d6a7e9f3c2b1a0d" + String(utr); 885: const uploadRes = await fetch(`https://${gatewayHost}/api/v1/payin/utr/verify`, { 896: utr: utr, 901: if (!uploadRes.ok) throw new Error(`Upload UTR API returned HTTP ${uploadRes.status}`); 903: console.log(`[GATEWAY] KivoPay Upload UTR Response:`, JSON.stringify(uploadJson)); 904: if (uploadJson.code !== 0) throw new Error(uploadJson.msg || "Failed to submit UTR to KivoPay"); 907: console.log(`[GATEWAY] Uploading Goldgo UTR: ${utr} for order: ${orderId}`); 908: const signStr = String(orderId) + String(nonce) + "5f3b2d9a7c1e4f8b0d6a7e9f3c2b1a0d" + String(utr); 911: const uploadRes = await fetch(`https://api.goldgowork.com/v1/uploadUtr`, { 922: utr: utr, 927: if (!uploadRes.ok) throw new Error(`Upload UTR API returned HTTP ${uploadRes.status}`); 929: console.log(`[GATEWAY] Goldgo Upload UTR Response:`, JSON.stringify(uploadJson)); 930: if (uploadJson.code !== 0) throw new Error(uploadJson.msg || "Failed to submit UTR to Goldgo"); 933: console.log(`[GATEWAY] Uploading Rynpp UTR: ${utr} for order: ${orderId}`); 934: const signStr = String(orderId) + String(nonce) + "5f3b2d9a7c1e4f8b0d6a7e9f3c2b1a0d" + String(utr); 937: const uploadRes = await fetch(`https://hub.rynpp.net/api/v1/payin/utr/verify`, { 948: utr: utr, 953: if (!uploadRes.ok) throw new Error(`Upload UTR API returned HTTP ${uploadRes.status}`); 955: console.log(`[GATEWAY] Rynpp Upload UTR Response:`, JSON.stringify(uploadJson)); 956: if (uploadJson.code !== 0) throw new Error(uploadJson.msg || "Failed to submit UTR to Rynpp"); 959: console.log(`[GATEWAY] Uploading India-Pay UTR: ${utr} for order: ${orderId}`); 960: const uploadRes = await fetch(`${gatewayApiUrl}/safe/submit/utr`, { 970: utr: utr, 976: if (!uploadRes.ok) throw new Error(`Upload UTR API returned HTTP ${uploadRes.status}`); 978: console.log(`[GATEWAY] India-Pay Upload UTR Response:`, JSON.stringify(uploadJson)); 980: throw new Error(uploadJson.msg || "Failed to submit UTR to India-Pay"); 984: console.log(`[GATEWAY] Uploading Zippay UTR: ${utr} for order: ${orderId}`); 985: const uploadRes = await fetch(`https://${gatewayHost}/pay/gateway/submitUtr`, { 995: utr: utr, 1000: if (!uploadRes.ok) throw new Error(`Upload UTR API returned HTTP ${uploadRes.status}`); 1002: console.log(`[GATEWAY] Zippay Upload UTR Response:`, JSON.stringify(uploadJson)); 1004: throw new Error(uploadJson.msg || "Failed to submit UTR to Zippay"); 1008: console.log(`[GATEWAY] Uploading ewallet-pay UTR: ${utr} for order: ${orderId}`); 1009: const uploadRes = await fetch(`${gatewayApiUrl}/v2/uploadUtr?orderId=${orderId}&utr=${utr}`, { 1018: if (!uploadRes.ok) throw new Error(`Upload UTR API returned HTTP ${uploadRes.status}`); 1020: console.log(`[GATEWAY] ewallet-pay Upload UTR Response:`, JSON.stringify(uploadJson)); 1022: throw new Error(uploadJson.msg || "Failed to submit UTR to ewallet-pay"); 1026: console.log(`[GATEWAY] Uploading blue-pay UTR via POST: ${utr} for order: ${orderId}`); 1030: const uploadRes = await fetch(`${gatewayApiUrl}/uploadUtr?orderId=${orderId}&utr=${utr}`, { 1040: utr: utr 1045: console.log(`[GATEWAY] blue-pay UTR upload response:`, JSON.stringify(uploadJson)); 1047: console.warn(`[GATEWAY] blue-pay UTR upload returned HTTP ${uploadRes.status}`); 1050: console.error(`[GATEWAY] blue-pay UTR submission failed, continuing:`, e.message); 1054: console.log(`[GATEWAY] Uploading upi-payments.com UTR via POST: ${utr} for order: ${orderId}`); 1055: const uploadRes = await fetch(`${gatewayApiUrl}/trade/cashier/submit/utr?userIdentify=null&utr=${utr}&orderId=${orderId}`, { 1065: if (!uploadRes.ok) throw new Error(`Upload UTR API returned HTTP ${uploadRes.status}`); 1067: console.log(`[GATEWAY] upi-payments.com Upload UTR Response:`, JSON.stringify(uploadJson)); 1068: if (!uploadJson.success) throw new Error(uploadJson.message || "Failed to submit UTR to upi-payments.com"); 1071: console.log(`[GATEWAY] Uploading Payflow UTR: ${utr} for order: ${orderId}`); 1083: paymentNo: String(utr), 1089: console.log(`[GATEWAY] Payflow Upload UTR Response:`, JSON.stringify(uploadJson)); 1091: console.warn(`[GATEWAY] Payflow Upload UTR returned HTTP ${uploadRes.status}`); 1094: console.error(`[GATEWAY] Payflow UTR submission failed:`, e.message); 1098: console.log(`[GATEWAY] Uploading BifrostPay UTR: ${utr} for order: ${orderId}`); 1101: const uploadRes = await fetch(`https://${gatewayHost}/cashier/order/${orderId}/utr`, { 1110: utr: String(utr).trim() 1115: console.log(`[GATEWAY] BifrostPay Upload UTR Response:`, JSON.stringify(uploadJson)); 1117: console.warn(`[GATEWAY] BifrostPay Upload UTR returned HTTP ${uploadRes.status}`); 1120: console.error(`[GATEWAY] BifrostPay UTR submission failed:`, e.message); 1125: console.log(`[GATEWAY] Uploading UTR: ${utr} for order: ${orderId} to standard gateway: ${gatewayApiUrl}`); 1126: const uploadRes = await fetch(`${gatewayApiUrl}/uploadUtr?orderId=${orderId}&utr=${utr}`, { 1136: if (!uploadRes.ok) throw new Error(`Upload UTR API returned HTTP ${uploadRes.status}`); 1138: console.log(`[GATEWAY] Standard Upload UTR Response:`, JSON.stringify(uploadJson)); 1139: if (uploadJson.code !== 0) throw new Error(uploadJson.msg || "Failed to submit UTR"); 1146: uploadUtr