Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
iso8583
/
bjb-samsat-banten
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 29e3f563
authored
Apr 10, 2019
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
edit network
1 parent
b82a3511
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
opensipkd/iso8583/bjb/samsat/.transaction.py.swp
opensipkd/iso8583/bjb/samsat/banten/test_info.py
opensipkd/iso8583/bjb/samsat/banten/test_inquiry.py
opensipkd/iso8583/bjb/samsat/structure.py
opensipkd/iso8583/bjb/samsat/.transaction.py.swp
0 → 100644
View file @
29e3f56
No preview for this file type
opensipkd/iso8583/bjb/samsat/banten/test_info.py
View file @
29e3f56
...
...
@@ -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
)
...
...
opensipkd/iso8583/bjb/samsat/banten/test_inquiry.py
View file @
29e3f56
...
...
@@ -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
(
'
\n
Pemda 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
(
'
\n
Pemda kirim inquiry response'
)
resp_iso
=
Doc
(
from_iso
=
from_iso
,
conf
=
self
.
conf
)
...
...
opensipkd/iso8583/bjb/samsat/structure.py
View file @
29e3f56
...
...
@@ -75,7 +75,7 @@ ERR_DB = 'Database error'
# Bit 3 to name function #
##########################
INQUIRY_CODE
=
'301099'
PAYMENT_CODE
=
'5
4
1099'
PAYMENT_CODE
=
'5
0
1099'
REPRINT1_CODE
=
'901099'
REPRINT2_CODE
=
'601099'
...
...
@@ -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_SETTLEMENT_DATE
=
'Settlement date {raw} tidak benar'
ERR_TRANSACTION_DATETIME
=
'Transaction datetime {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
ERR_TRANSACTION_TIME
=
'Transaction time {raw} tidak benar'
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment