Commit fa31f6f730817deb91d09dc161296323e6d0c9ab

Authored by Adhidarma Hadiwinoto
1 parent bea5466bf0
Exists in master

integrasi dengan komodo-sdk

Showing 2 changed files with 19 additions and 3 deletions Side-by-side Diff

1 1 "use strict";
2 2  
3 3 const transport = require('./transport-xmpp');
4   -const trxCenter = require('./trx-center');
5   -const httpResponseServer = require('./center-http-response-server');
  4 +const trxCenter = require('komodo-sdk/center/messaging/trx-center');
6 5  
7 6 transport.init(trxCenter.callback);
8 7 trxCenter.setTransport(transport);
9   -httpResponseServer.setTransport(transport);
... ... @@ -861,3 +861,21 @@
861 861 {"transport":"xmpp","me":"komodo_trx0@host2host.id","partner":"adhisimon@host2host.id","msg":"Pembelian TSEL5 ke 73 SEDANG DIPROSES. Harga Rp. 5.300. Saldo setelah transaksi Rp. 670.000.","level":"verbose","message":"Sending message via XMPP transport","timestamp":"2017-08-22 18:42:18"}
862 862 {"qs":{"request_id":"AUTO_TSEL5_73_20170822b4d7653a-f15b-4212-92a9-ffaa4eb45e33","transaction_id":"115","transaction_date":"2017-08-22T11:42:18.000Z","terminal_name":"adhisimon@host2host.id","product_name":"TSEL5","destination":"73","rc":"14","message":"Pembelian TSEL5 ke 73 pada tanggal 2017-08-22 18:42:18 GAGAL. Harga Rp. 5.300. Saldo setelah transaksi Rp. 675.300.","sn":"","amount":"5300","ending_balance":"675300","origin":"XMPP0","origin_report_ip":"127.0.0.1","origin_report_port":"14232"},"level":"verbose","message":"Got reverse report from CORE","timestamp":"2017-08-22 18:42:21"}
863 863 {"transport":"xmpp","me":"komodo_trx0@host2host.id","partner":"adhisimon@host2host.id","msg":"Pembelian TSEL5 ke 73 pada tanggal 2017-08-22 18:42:18 GAGAL. Harga Rp. 5.300. Saldo setelah transaksi Rp. 675.300.","level":"verbose","message":"Sending message via XMPP transport","timestamp":"2017-08-22 18:42:21"}
  864 +{"me":"komodo_trx0@host2host.id","partner":"adhisimon@host2host.id","msg":"tsel5.08123.1234","level":"info","message":"Incoming message via XMPP transport","timestamp":"2017-08-22 19:00:58"}
  865 +{"level":"verbose","message":"Reporting message to CORE","timestamp":"2017-08-22 19:00:58"}
  866 +{"url":"http://localhost:32972/apikey/c47ed08df360a15f9c60e8cfb3020f7d083b3f89/prepaid/buy","qs":{"request_id":"AUTO_TSEL5_08123_20170822","terminal_name":"adhisimon@host2host.id","product_name":"TSEL5","destination":"08123","password":"1234","origin":"XMPP0","report_port":14232,"msg":"tsel5.08123.1234"},"level":"verbose","message":"Requesting service to CORE","timestamp":"2017-08-22 19:00:58"}
  867 +{"transport":"xmpp","me":"komodo_trx0@host2host.id","partner":"adhisimon@host2host.id","msg":"Pembelian TSEL5 ke 08123 SEDANG DIPROSES. Harga Rp. 5.300. Saldo setelah transaksi Rp. 670.000.","level":"verbose","message":"Sending message via XMPP transport","timestamp":"2017-08-22 19:00:58"}
  868 +{"me":"komodo_trx0@host2host.id","partner":"adhisimon@host2host.id","msg":"tsel5.0723.1234","level":"info","message":"Incoming message via XMPP transport","timestamp":"2017-08-22 19:01:01"}
  869 +{"level":"verbose","message":"Reporting message to CORE","timestamp":"2017-08-22 19:01:01"}
  870 +{"url":"http://localhost:32972/apikey/c47ed08df360a15f9c60e8cfb3020f7d083b3f89/prepaid/buy","qs":{"request_id":"AUTO_TSEL5_0723_20170822","terminal_name":"adhisimon@host2host.id","product_name":"TSEL5","destination":"0723","password":"1234","origin":"XMPP0","report_port":14232,"msg":"tsel5.0723.1234"},"level":"verbose","message":"Requesting service to CORE","timestamp":"2017-08-22 19:01:01"}
  871 +{"transport":"xmpp","me":"komodo_trx0@host2host.id","partner":"adhisimon@host2host.id","msg":"Pembelian TSEL5 ke 0723 SEDANG DIPROSES. Harga Rp. 5.300. Saldo setelah transaksi Rp. 664.700.","level":"verbose","message":"Sending message via XMPP transport","timestamp":"2017-08-22 19:01:01"}
  872 +{"me":"komodo_trx0@host2host.id","partner":"adhisimon@host2host.id","msg":"tsel5.78782.1234","level":"info","message":"Incoming message via XMPP transport","timestamp":"2017-08-22 19:01:05"}
  873 +{"level":"verbose","message":"Reporting message to CORE","timestamp":"2017-08-22 19:01:05"}
  874 +{"url":"http://localhost:32972/apikey/c47ed08df360a15f9c60e8cfb3020f7d083b3f89/prepaid/buy","qs":{"request_id":"AUTO_TSEL5_78782_20170822","terminal_name":"adhisimon@host2host.id","product_name":"TSEL5","destination":"78782","password":"1234","origin":"XMPP0","report_port":14232,"msg":"tsel5.78782.1234"},"level":"verbose","message":"Requesting service to CORE","timestamp":"2017-08-22 19:01:05"}
  875 +{"transport":"xmpp","me":"komodo_trx0@host2host.id","partner":"adhisimon@host2host.id","msg":"Pembelian TSEL5 ke 78782 SEDANG DIPROSES. Harga Rp. 5.300. Saldo setelah transaksi Rp. 659.400.","level":"verbose","message":"Sending message via XMPP transport","timestamp":"2017-08-22 19:01:05"}
  876 +{"qs":{"request_id":"AUTO_TSEL5_0723_20170822db2cd202-b508-43a4-bf3b-4f2ec4eb767d","transaction_id":"117","transaction_date":"2017-08-22T12:01:01.000Z","terminal_name":"adhisimon@host2host.id","product_name":"TSEL5","destination":"0723","rc":"14","message":"Pembelian TSEL5 ke 0723 pada tanggal 2017-08-22 19:01:01 GAGAL. Harga Rp. 5.300. Saldo setelah transaksi Rp. 670.000.","sn":"","amount":"5300","ending_balance":"670000","origin":"XMPP0","origin_report_ip":"127.0.0.1","origin_report_port":"14232"},"level":"verbose","message":"Got reverse report from CORE","timestamp":"2017-08-22 19:01:07"}
  877 +{"transport":"xmpp","me":"komodo_trx0@host2host.id","partner":"adhisimon@host2host.id","msg":"Pembelian TSEL5 ke 0723 pada tanggal 2017-08-22 19:01:01 GAGAL. Harga Rp. 5.300. Saldo setelah transaksi Rp. 670.000.","level":"verbose","message":"Sending message via XMPP transport","timestamp":"2017-08-22 19:01:07"}
  878 +{"qs":{"request_id":"AUTO_TSEL5_08123_201708224397dbc4-2069-4897-bb63-f291ecb58268","transaction_id":"116","transaction_date":"2017-08-22T12:00:58.000Z","terminal_name":"adhisimon@host2host.id","product_name":"TSEL5","destination":"08123","rc":"14","message":"Pembelian TSEL5 ke 08123 pada tanggal 2017-08-22 19:00:58 GAGAL. Harga Rp. 5.300. Saldo setelah transaksi Rp. 675.300.","sn":"","amount":"5300","ending_balance":"675300","origin":"XMPP0","origin_report_ip":"127.0.0.1","origin_report_port":"14232"},"level":"verbose","message":"Got reverse report from CORE","timestamp":"2017-08-22 19:01:08"}
  879 +{"transport":"xmpp","me":"komodo_trx0@host2host.id","partner":"adhisimon@host2host.id","msg":"Pembelian TSEL5 ke 08123 pada tanggal 2017-08-22 19:00:58 GAGAL. Harga Rp. 5.300. Saldo setelah transaksi Rp. 675.300.","level":"verbose","message":"Sending message via XMPP transport","timestamp":"2017-08-22 19:01:08"}
  880 +{"qs":{"request_id":"AUTO_TSEL5_78782_20170822","transaction_id":"118","transaction_date":"2017-08-22T12:01:05.000Z","terminal_name":"adhisimon@host2host.id","product_name":"TSEL5","destination":"78782","rc":"00","message":"Pembelian TSEL5 ke 78782 pada tanggal 2017-08-22 19:01:05 BERHASIL. SN=20170822190115056. Harga Rp. 5.300. Saldo setelah transaksi Rp. 659.400.","sn":"20170822190115056","amount":"5300","ending_balance":"659400","origin":"XMPP0","origin_report_ip":"127.0.0.1","origin_report_port":"14232"},"level":"verbose","message":"Got reverse report from CORE","timestamp":"2017-08-22 19:01:15"}
  881 +{"transport":"xmpp","me":"komodo_trx0@host2host.id","partner":"adhisimon@host2host.id","msg":"Pembelian TSEL5 ke 78782 pada tanggal 2017-08-22 19:01:05 BERHASIL. SN=20170822190115056. Harga Rp. 5.300. Saldo setelah transaksi Rp. 659.400.","level":"verbose","message":"Sending message via XMPP transport","timestamp":"2017-08-22 19:01:15"}