Commit 9bc606946ef40cac590a3234488cfcf96b7b799d

Authored by Adhidarma Hadiwinoto
1 parent da1b3450cc
Exists in master

perbaikan rc

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

partner-bayarkilat.js
... ... @@ -73,6 +73,7 @@ function topupRequest(task, retry) {
73 73 callbackReport(task.requestId, '68', body);
74 74 */
75 75  
  76 + logger.verbose('Got respose', {rawBody: body});
76 77 parseResponse(body, task);
77 78 });
78 79 }
... ... @@ -98,10 +99,10 @@ function parseResponse(body, task) {
98 99 message = response.xml.response_message[0];
99 100  
100 101 var st24rc = '40';
101   - if (responseCode == '00') {
  102 + if (parseInt(responseCode) == 0) {
102 103 st24rc = '00';
103 104 }
104   - else if (responseCode == '99') {
  105 + else if (parseInt(responseCode) == '99') {
105 106 st24rc = '68'
106 107 }
107 108 else {