Commit 8988d7c474dbd7baf745d5f12609a83a61e624de
1 parent
8fff5a84d1
Exists in
master
More logs
Showing 1 changed file with 3 additions and 2 deletions Side-by-side Diff
index.js
... | ... | @@ -137,6 +137,8 @@ exports.report = async (data, xid, retry) => { |
137 | 137 | || null, |
138 | 138 | }; |
139 | 139 | |
140 | + const coreEndpoint = `${coreUrl}/postpaid2/report`; | |
141 | + | |
140 | 142 | logger.verbose('POSTPAID2-SDK: Going to report to CORE', { |
141 | 143 | xid, |
142 | 144 | trxId: data.trx_id, |
... | ... | @@ -144,10 +146,9 @@ exports.report = async (data, xid, retry) => { |
144 | 146 | sn: data.sn, |
145 | 147 | amount: data.amount, |
146 | 148 | baseBillAmount: data.base_bill_amount, |
149 | + coreEndpoint, | |
147 | 150 | }); |
148 | 151 | |
149 | - const coreEndpoint = `${coreUrl}/postpaid2/report`; | |
150 | - | |
151 | 152 | try { |
152 | 153 | const reportResult = await axios.post( |
153 | 154 | coreEndpoint, JSON.stringify(dataToReport), REPORT_AXIOS_CONFIG, |