Commit aa904b9455f52050875fba6d0cc89317f060b102

Authored by Adhidarma Hadiwinoto
1 parent ff76bc1001
Exists in master

More log on webhook sender

Showing 1 changed file with 8 additions and 2 deletions Side-by-side Diff

lib/core-callback/sender.js
... ... @@ -188,8 +188,11 @@ const sender = async (data, xid, retry) => {
188 188 xid,
189 189 webhookType,
190 190 partner: config.listener.partner.webhook,
191   - trxId: data.trx_id,
  191 + trxId: data.transaction_id && data.transaction_id.toString(),
192 192 request_id: data.request_id && data.request_id.toString(),
  193 + product_name: data.product_name,
  194 + destination: data.destination,
  195 + rc: data.rc,
193 196 });
194 197  
195 198 axios.post(config.listener.partner.webhook, {
... ... @@ -201,8 +204,11 @@ const sender = async (data, xid, retry) => {
201 204 xid,
202 205 webhookType,
203 206 partner: config.listener.partner.webhook,
204   - trxId: data.trx_id,
  207 + trxId: data.transaction_id && data.transaction_id.toString(),
205 208 request_id: data.request_id && data.request_id.toString(),
  209 + product_name: data.product_name,
  210 + destination: data.destination,
  211 + rc: data.rc,
206 212 });
207 213 } catch (e) {
208 214 logger.warn(`${MODULE_NAME} F722520A: Exception on calling webhook`, {