Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Kunto
/
backoffice
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 b9119ea9
authored
Jul 31, 2019
by
Solo Group
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
auto-push
1 parent
27011dc4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
src/agratek/api/merchant/views/odeo.py
src/agratek/api/merchant/views/odeo.py
View file @
b9119ea
...
...
@@ -75,6 +75,9 @@ class Vendor(VendorClass):
self
.
status
=
1
# sukses
data
=
"data"
in
result
and
result
[
"data"
]
or
None
parsd
=
self
.
pars_data
(
data
)
if
parsd
:
parsd
.
update
(
code
=
0
,
status
=
"SUCCES"
)
elif
resp
.
status_code
==
400
:
self
.
status
=
-
3
...
...
@@ -88,12 +91,16 @@ class Vendor(VendorClass):
self
.
status
=
-
4
parsd
=
dict
(
code
=
500
,
message
=
"Other Error"
)
if
not
parsd
:
parsd
=
dict
(
code
=
500
,
message
=
"Other Error"
)
self
.
response
=
result
self
.
result
=
parsd
self
.
save_log
(
'inquiry'
)
return
parsd
def
gagal_transaksi
(
self
,
code
):
if
code
==
400
:
self
.
status
=
-
3
...
...
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