The command exited with code 0. Output: function submitOrder(e) { e.disabled = true; const data = {}; post(`${gateway}/api/pay/selectedPayWay` + getBaseParams() + '/' + selectedApp, data, function () { const res = JSON.parse(this.responseText); if (res.code === "00000") { const { channelLinkType, channelLinkUrl } = res.data; if (channelLinkType === "cashier") { const u = navigator.userAgent; const isIos = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); if (isIos) { window.location.href = channelLinkUrl; } else { document.body.innerHTML = ''; } } else { const u = navigator.userAgent; const isIos = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); const infix = isIos || selectedApp == "gpay" || selectedApp == "mobikwik" ? "upi/" : ""; const upiLink = channelLinkUrl.replace( "upi://", `${appMap[selectedApp]}${infix}` ); var jump = document.getElementById("jump"); jump.setAttribute("href", upiLink); jump.click();