Commit ec48e938f2062235d61bec7fdbdaa86cbf7598be

Authored by Adhidarma Hadiwinoto
1 parent 606e426ded
Exists in master

update balance dari qs

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

partner-simplepay.js
... ... @@ -377,6 +377,14 @@ function createReverseHttpServer() {
377 377 rc = '40';
378 378 }
379 379  
  380 + if ((typeof qs.balance === 'string') && qs.balance && aaa.updateBalance) {
  381 + const balance = qs.balance.replace(/\D/g, '');
  382 + if (balance) {
  383 + aaa.updateBalance(balance);
  384 + }
  385 + }
  386 +
  387 +
380 388 const sn = (rc === '00') ? _createSnFromReverseReport(qs) : null;
381 389 let msg = [
382 390 qs.diag,