Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
pyramid-linkaja
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 e306a8b2
authored
Jan 22, 2024
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Tambah trx_type 031 untuk cek status pembayaran
1 parent
96b5e15d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
3 deletions
.gitignore
CHANGES.txt
pyramid_linkaja/responses.py
pyramid_linkaja/structure.py
.gitignore
View file @
e306a8b
dist
dist
*egg-info
*egg-info
__pycache__
__pycache__
build
CHANGES.txt
View file @
e306a8b
0.1.5 21-1-2024
---------------
- Tambah trx_type 031 untuk cek status pembayaran
0.1.4 28-11-2021
0.1.4 28-11-2021
----------------
----------------
- Penggunaan pkgutil agar lebih fleksibel saat pip install -e
- Penggunaan pkgutil agar lebih fleksibel saat pip install -e
...
...
pyramid_linkaja/responses.py
View file @
e306a8b
...
@@ -69,6 +69,10 @@ def is_reversal(data):
...
@@ -69,6 +69,10 @@ def is_reversal(data):
return
data
[
'trx_type'
]
==
METHOD_CODE
[
'reversal'
]
return
data
[
'trx_type'
]
==
METHOD_CODE
[
'reversal'
]
def
is_status
(
data
):
return
data
[
'trx_type'
]
==
METHOD_CODE
[
'status'
]
def
get_template_response
(
data
):
def
get_template_response
(
data
):
if
is_inquiry
(
data
):
if
is_inquiry
(
data
):
return
InquiryResponse
()
return
InquiryResponse
()
...
...
pyramid_linkaja/structure.py
View file @
e306a8b
...
@@ -2,19 +2,20 @@ INQUIRY_RESP_FIELDS = (
...
@@ -2,19 +2,20 @@ INQUIRY_RESP_FIELDS = (
'Response Code'
,
'Response Code'
,
'Biller Name'
,
'Biller Name'
,
'Bill Amount'
,
'Bill Amount'
,
'Bill Ref'
,
#
STAN
'Bill Ref'
,
#
Field linkaja_trx.id
'Notification Message'
)
'Notification Message'
)
PAYMENT_RESP_FIELDS
=
(
PAYMENT_RESP_FIELDS
=
(
'Response Code'
,
'Response Code'
,
'Transaction ID'
,
# NTP
'Transaction ID'
,
# NTP
'Bill Ref'
,
#
STAN
'Bill Ref'
,
#
Field linkaja_trx.inquiry_id
'Notification Message'
)
'Notification Message'
)
METHOD
=
{
METHOD
=
{
'021'
:
'inquiry'
,
'021'
:
'inquiry'
,
'022'
:
'payment'
,
'022'
:
'payment'
,
'023'
:
'reversal'
}
'023'
:
'reversal'
,
'031'
:
'status'
}
METHOD_CODE
=
dict
()
METHOD_CODE
=
dict
()
for
key
,
value
in
METHOD
.
items
():
for
key
,
value
in
METHOD
.
items
():
METHOD_CODE
[
value
]
=
key
METHOD_CODE
[
value
]
=
key
...
...
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