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 279c8cc7
authored
Jul 24, 2019
by
Solo Group
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
pars odeo
1 parent
ef1bd928
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
src/agratek/api/merchant/views/odeo.py
src/agratek/api/merchant/views/odeo.py
View file @
279c8cc
...
...
@@ -105,6 +105,7 @@ class Vendor(VendorClass):
data
=
"data"
in
result
and
result
[
"data"
]
or
None
if
data
:
self
.
vend_trx
=
"order_id"
in
data
and
data
[
"order_id"
]
or
None
self
.
amt_buy
=
"price"
in
data
and
data
[
"price"
]
or
0
parsd
=
self
.
pars_data
(
data
)
...
...
@@ -171,6 +172,8 @@ class Vendor(VendorClass):
result
[
"bill_no"
]
=
self
.
bill_no
result
[
"cust_trx"
]
=
self
.
cust_trx
result
[
"vend_trx"
]
=
self
.
vend_trx
result
[
'harga'
]
=
self
.
amt_buy
if
not
data
:
return
result
...
...
@@ -182,6 +185,7 @@ class Vendor(VendorClass):
elif
data
[
"rc"
]
==
"67"
:
self
.
status
=
-
2
# Gagal Karena Pernah Transaksi
if
"subscriber_id"
in
data
and
data
[
"subscriber_id"
]:
result
[
'nopel'
]
=
data
[
"subscriber_id"
]
...
...
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