Commit 29e3f563 by Owo Sugiana

edit network

1 parent b82a3511
......@@ -100,7 +100,7 @@ class TestInfo(object):
amount=int(self.amount),
tgl_transaksi=tgl_transaksi,
jam_transaksi=jam_transaksi,
ntp='1993797040'
# ntp='1993797040'
)
)
doc = Doc(conf=self.conf)
......
......@@ -24,7 +24,12 @@ def inquiry_request(iso, invoice_id, bank_id=None):
iso.setBit(42, '000000000000000')
iso.setBit(43, 'Nama Bank')
iso.setBit(49, '390')
#s = str(len(invoice_id)).zfill(3) + invoice_id
#iso.setBit(61, s)
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)
class TestInquiry(object):
......@@ -53,6 +58,8 @@ class TestInquiry(object):
print('\nPemda terima inquiry request')
from_iso = Doc(conf=self.conf)
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')
resp_iso = Doc(from_iso=from_iso, conf=self.conf)
......
......@@ -75,7 +75,7 @@ ERR_DB = 'Database error'
# Bit 3 to name function #
##########################
INQUIRY_CODE = '301099'
PAYMENT_CODE = '541099'
PAYMENT_CODE = '501099'
REPRINT1_CODE = '901099'
REPRINT2_CODE = '601099'
......@@ -125,7 +125,7 @@ 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_SETTLEMENT_DATE = 'Settlement date {raw} tidak benar'
ERR_TRANSACTION_DATETIME = 'Transaction datetime {raw} tidak benar'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!