The following changes were made by the replace_file_content tool to: /root/aadharbot/gateways.js. If relevant, proactively run terminal commands to execute this code for the USER. Don't ask for permission. [diff_block_start] @@ -503,7 +503,7 @@ const payJson = await buildRes.json(); if (payJson.code !== 200 || !payJson.data || !payJson.data.deepLink) { - throw new Error(payJson.msg || "Failed to retrieve payment deepLink from Payflow"); + throw new Error((payJson.data && !payJson.data.deepLink) ? "Order expired or inactive on Payflow" : (payJson.msg || "Failed to retrieve payment deepLink from Payflow")); } const upiUrl = payJson.data.deepLink; [diff_block_end] Please note that the above snippet only shows the MODIFIED lines from the last change. It shows up to 3 lines of unchanged lines before and after the modified lines. The actual file contents may have many more lines not shown.