diff --git a/lib/core-callback/sender.js b/lib/core-callback/sender.js index 9faa476..735f6c0 100644 --- a/lib/core-callback/sender.js +++ b/lib/core-callback/sender.js @@ -39,7 +39,7 @@ const urlConcatQs = require('../url-concat-qs'); const sender = async (data, xid, retry) => { const params = { httpgetx_xid: xid, - command: data.command, + command: data.command || 'BUY', request_id: data.request_id && data.request_id.toString(), transaction_id: data.transaction_id && data.transaction_id.toString(), diff --git a/lib/webhook-sender.js b/lib/webhook-sender.js index 7c9bfcb..fdede48 100644 --- a/lib/webhook-sender.js +++ b/lib/webhook-sender.js @@ -76,6 +76,7 @@ const sender = async (xid, webhookType, body, retry) => { partner: config.webhook.url, trxId: body.transaction_id, request_id: body.request_id, + retried: retry || 0, }); await axios.post(config.webhook.url, {