Commit 5f5702f45e43801ca6efb66b9368f8b53040e488

Authored by Adhidarma Hadiwinoto
1 parent 916fdcf584
Exists in master

Perbaikan default rc

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

... ... @@ -86,7 +86,9 @@ module.exports = (xid, trxIdFromCaller, xml, isCallback, remoteIp) => {
86 86 return;
87 87 }
88 88  
89   - const rc = translateRc(xid, responseCodeFromResponse) || '68';
  89 + const rc = responseCodeFromResponse
  90 + ? translateRc(xid, responseCodeFromResponse) || '40'
  91 + : '68';
90 92  
91 93 const sn = (
92 94 rc === '00' && (