diff --git a/lib/core-callback/sender.js b/lib/core-callback/sender.js index 0cb9488..49b52be 100644 --- a/lib/core-callback/sender.js +++ b/lib/core-callback/sender.js @@ -188,8 +188,11 @@ const sender = async (data, xid, retry) => { xid, webhookType, partner: config.listener.partner.webhook, - trxId: data.trx_id, + trxId: data.transaction_id && data.transaction_id.toString(), request_id: data.request_id && data.request_id.toString(), + product_name: data.product_name, + destination: data.destination, + rc: data.rc, }); axios.post(config.listener.partner.webhook, { @@ -201,8 +204,11 @@ const sender = async (data, xid, retry) => { xid, webhookType, partner: config.listener.partner.webhook, - trxId: data.trx_id, + trxId: data.transaction_id && data.transaction_id.toString(), request_id: data.request_id && data.request_id.toString(), + product_name: data.product_name, + destination: data.destination, + rc: data.rc, }); } catch (e) { logger.warn(`${MODULE_NAME} F722520A: Exception on calling webhook`, {