Commit 6a871cc1295e8c140efab108e93c43bb0641a8db
1 parent
bc791b8091
Exists in
master
penanganan beberapa rc 0099
Showing 1 changed file with 9 additions and 0 deletions Side-by-side Diff
partner-sc.js
... | ... | @@ -278,6 +278,15 @@ function topupRequest(task) { |
278 | 278 | |
279 | 279 | logger.info('Response message: ' + responseMessage); |
280 | 280 | |
281 | + if ( (resultCode == '0099') && (result_error_message.search(/METER .* YANG ANDA MASUKAN SALAH/) >= 0) ) { | |
282 | + callbackReport(task.requestId, '14', responseMessage); | |
283 | + return; | |
284 | + } | |
285 | + else if ( (resultCode == '0099') && (result_error_message.search(/INQUIRY TIMEOUT, SILAHKAN DICOBA KEMBALI/) >= 0) ) { | |
286 | + callbackReport(task.requestId, '91', responseMessage); | |
287 | + return; | |
288 | + } | |
289 | + | |
281 | 290 | if (aaa) { |
282 | 291 | // update balance |
283 | 292 | aaa.updateBalance(directResponse.Result.EndBalance[0]); |