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 5f373ebe
authored
Mar 31, 2019
by
Solo Group
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
reversa;
1 parent
5fca3920
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
opensipkd/iso8583/bjb/samsat/banten/doc.py
opensipkd/iso8583/bjb/samsat/banten/job.py
opensipkd/iso8583/bjb/samsat/banten/doc.py
View file @
5f373eb
...
@@ -388,6 +388,12 @@ class Doc(Transaction):
...
@@ -388,6 +388,12 @@ class Doc(Transaction):
############
############
# Reversal #
# Reversal #
############
############
def
reversal_request
(
self
,
data
):
for
p
in
data
:
self
.
setBit
(
int
(
p
),
data
[
p
])
self
.
setMTI
(
'0400'
)
self
.
set_stan
()
def
execute_reversal
(
self
):
def
execute_reversal
(
self
):
self
.
invoice_id_raw
=
self
.
from_iso
.
get_invoice_id_raw
()[:
16
]
.
strip
()
self
.
invoice_id_raw
=
self
.
from_iso
.
get_invoice_id_raw
()[:
16
]
.
strip
()
...
...
opensipkd/iso8583/bjb/samsat/banten/job.py
View file @
5f373eb
...
@@ -24,3 +24,9 @@ class Job(NetworkJob):
...
@@ -24,3 +24,9 @@ class Job(NetworkJob):
iso
=
self
.
create_iso
()
iso
=
self
.
create_iso
()
iso
.
payment_request
(
p
[
'data'
])
iso
.
payment_request
(
p
[
'data'
])
return
iso
return
iso
def
reversal
(
self
,
p
):
self
.
echo_time
=
time
()
iso
=
self
.
create_iso
()
iso
.
reversal_request
(
p
[
'data'
])
return
iso
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