Commit 29e3f563 by Owo Sugiana

edit network

1 parent b82a3511
...@@ -100,7 +100,7 @@ class TestInfo(object): ...@@ -100,7 +100,7 @@ class TestInfo(object):
amount=int(self.amount), amount=int(self.amount),
tgl_transaksi=tgl_transaksi, tgl_transaksi=tgl_transaksi,
jam_transaksi=jam_transaksi, jam_transaksi=jam_transaksi,
ntp='1993797040' # ntp='1993797040'
) )
) )
doc = Doc(conf=self.conf) doc = Doc(conf=self.conf)
......
...@@ -24,7 +24,12 @@ def inquiry_request(iso, invoice_id, bank_id=None): ...@@ -24,7 +24,12 @@ def inquiry_request(iso, invoice_id, bank_id=None):
iso.setBit(42, '000000000000000') iso.setBit(42, '000000000000000')
iso.setBit(43, 'Nama Bank') iso.setBit(43, 'Nama Bank')
iso.setBit(49, '390') iso.setBit(49, '390')
#s = str(len(invoice_id)).zfill(3) + invoice_id
#iso.setBit(61, s)
iso.setBit(61, invoice_id) iso.setBit(61, invoice_id)
print('DEBUG getBit(61): {}'.format(iso.getBit(61)))
print('DEBUG get_value(61): {}'.format(iso.get_value(61)))
print('DEBUG get_values(): {}'.format(iso.getBitsAndValues()))
from iso8583_web.read_conf import (read_conf, get_str, name_conf) from iso8583_web.read_conf import (read_conf, get_str, name_conf)
class TestInquiry(object): class TestInquiry(object):
...@@ -53,6 +58,8 @@ class TestInquiry(object): ...@@ -53,6 +58,8 @@ class TestInquiry(object):
print('\nPemda terima inquiry request') print('\nPemda terima inquiry request')
from_iso = Doc(conf=self.conf) from_iso = Doc(conf=self.conf)
from_iso.setIsoContent(raw) from_iso.setIsoContent(raw)
print('DEBUG getBit(61): {}'.format(from_iso.getBit(61)))
print('DEBUG get_value(61): {}'.format(from_iso.get_value(61)))
print('\nPemda kirim inquiry response') print('\nPemda kirim inquiry response')
resp_iso = Doc(from_iso=from_iso, conf=self.conf) resp_iso = Doc(from_iso=from_iso, conf=self.conf)
......
...@@ -75,7 +75,7 @@ ERR_DB = 'Database error' ...@@ -75,7 +75,7 @@ ERR_DB = 'Database error'
# Bit 3 to name function # # Bit 3 to name function #
########################## ##########################
INQUIRY_CODE = '301099' INQUIRY_CODE = '301099'
PAYMENT_CODE = '541099' PAYMENT_CODE = '501099'
REPRINT1_CODE = '901099' REPRINT1_CODE = '901099'
REPRINT2_CODE = '601099' REPRINT2_CODE = '601099'
...@@ -125,9 +125,9 @@ INVOICE_PROFILE = [ ...@@ -125,9 +125,9 @@ INVOICE_PROFILE = [
] ]
ERR_INVALID_NUMBER = 'Invoice ID {invoice_id} tidak benar' #ERR_INVALID_NUMBER = 'Invoice ID {invoice_id} tidak benar'
ERR_INVALID_BANK = 'Bank ID {bank_id} tidak diperkenankan' ERR_INVALID_BANK = 'Bank ID {bank_id} tidak diperkenankan'
ERR_SETTLEMENT_DATE = 'Settlement date {raw} tidak benar' ERR_SETTLEMENT_DATE = 'Settlement date {raw} tidak benar'
ERR_TRANSACTION_DATETIME = 'Transaction datetime {raw} tidak benar' ERR_TRANSACTION_DATETIME = 'Transaction datetime {raw} tidak benar'
ERR_TRANSACTION_DATE = 'Transaction date {raw} tidak benar' ERR_TRANSACTION_DATE = 'Transaction date {raw} tidak benar'
ERR_TRANSACTION_TIME = 'Transaction time {raw} tidak benar'
\ No newline at end of file \ No newline at end of file
ERR_TRANSACTION_TIME = 'Transaction time {raw} tidak benar'
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!