Commit 4c3d0d0f59bb4a5bd3a7957a0c182a9fe92a2694

Authored by Adhidarma Hadiwinoto
1 parent d055b3ecec
Exists in master

nomor pelanggan salah

Showing 1 changed file with 7 additions and 0 deletions Side-by-side Diff

... ... @@ -213,7 +213,9 @@ function topupResponseHandler(body, task) {
213 213 rc = '68';
214 214 }
215 215 else if (hasSuccessKeywords(message)) {
  216 +
216 217 var sn = getSNFromResponseObject(result);
  218 +
217 219 if (!sn) {
218 220 sn = getSNFromMessage(message);
219 221 }
... ... @@ -221,6 +223,11 @@ function topupResponseHandler(body, task) {
221 223 message = 'SN=' + sn + '; ' + message;
222 224 rc = '00';
223 225  
  226 + }
  227 + else if (message.indexOf('Nomor Pelanggan Salah') >= 0) {
  228 +
  229 + rc = '14';
  230 +
224 231 } else {
225 232 rc = supplierRcToST24Rc(result.ciwaru.rc[0]);
226 233 if (!rc) {