Commit cebcf3152b8086482e7369e563f69cb99f10b8e4

Authored by Adhidarma Hadiwinoto
1 parent cc333eb077
Exists in master

verbose harga dan saldo

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

... ... @@ -156,19 +156,23 @@ function topupResponseHandler(body, request_id) {
156 156  
157 157 var price = priceFromMessage(message);
158 158 if (price != null) {
  159 + console.log('Harga: ' + price);
159 160 trx_prices[request_id] = price;
160 161 setTimeout(deleteTrxPrice, 3 * 24 * 3600 * 1000, request_id);
161 162 } else if (response_code == '00' && trx_prices[request_id] !== undefined) {
162 163 price = trx_prices[request_id];
  164 + console.log('Harga: ' + price);
163 165 message = message + ' -- Harga: ' + price;
164 166 }
165 167  
166 168 var balance = balanceFromMessage(message);
167 169 if (balance != null) {
  170 + console.log('Saldo: ' + balance);
168 171 trx_balances[request_id] = balance;
169 172 setTimeout(deleteTrxBalance, 3 * 24 * 3600 * 1000, request_id);
170 173 } else if (response_code == '00' && trx_balances[request_id] !== undefined) {
171 174 balance = trx_balances[request_id];
  175 + console.log('Saldo: ' + balance);
172 176 message = message + ' -- Saldo: ' + balance;
173 177 }
174 178