Commit 106c376a0c90ee5d852576c044d637b306790638
1 parent
8834d9e192
Exists in
master
penanganan nomor salah return rc 14
Showing 1 changed file with 8 additions and 1 deletions Side-by-side Diff
partner-irs.js
... | ... | @@ -157,7 +157,14 @@ function topupRequestXMLRPC(task, retry) { |
157 | 157 | } |
158 | 158 | |
159 | 159 | if (value['RESPONSECODE'] != '00' && value['RESPONSECODE'] != '68') { |
160 | - value['RESPONSECODE'] = '40'; | |
160 | + | |
161 | + if (value['MESSAGE'].indexOf("Trx XL-AXIS NO SALAH") >= 0) { | |
162 | + value['RESPONSECODE'] = '14'; | |
163 | + } | |
164 | + else { | |
165 | + value['RESPONSECODE'] = '40'; | |
166 | + } | |
167 | + | |
161 | 168 | } |
162 | 169 | |
163 | 170 | pushResponseToMongoDb(task, {ts: responseTs, supplier: config.globals.gateway_name, raw: JSON.stringify(value), parsed: value}, value['RESPONSECODE']); |