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 6fad9750
authored
Sep 16, 2019
by
Solo Group
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
cancel
1 parent
2bdb8632
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
1 deletions
src/agratek/api/merchant/views/api_merchant.py
src/agratek/api/merchant/views/np/__init__.py
src/agratek/api/merchant/views/np/cancel_tx.py
src/agratek/api/merchant/views/vendor.py
src/agratek/api/merchant/views/api_merchant.py
View file @
6fad975
...
@@ -400,7 +400,10 @@ def cancel_tx(dat):
...
@@ -400,7 +400,10 @@ def cancel_tx(dat):
dat
[
"message"
]
=
"Data Tagihan {} tidak ditemukan"
.
format
(
inv_no
)
dat
[
"message"
]
=
"Data Tagihan {} tidak ditemukan"
.
format
(
inv_no
)
return
dat
return
dat
payment
=
inv
.
payment
[
"response"
]
payment
=
inv
.
notify
[
"request"
]
if
not
payment
:
payment
=
inv
.
payment
[
"response"
]
if
not
payment
:
if
not
payment
:
dat
[
"status"
]
=
"FAILED"
dat
[
"status"
]
=
"FAILED"
dat
[
"message"
]
=
"Data Pembayaran {} tidak ditemukan"
.
format
(
inv_no
)
dat
[
"message"
]
=
"Data Pembayaran {} tidak ditemukan"
.
format
(
inv_no
)
...
...
src/agratek/api/merchant/views/np/__init__.py
View file @
6fad975
This diff is collapsed.
Click to expand it.
src/agratek/api/merchant/views/np/cancel_tx.py
0 → 100644
View file @
6fad975
import
logging
from
agratek.api.merchant.views.notify_vendor
import
payment_notify
from
opensipkd.pasar.models.produk
import
PartnerPay
,
PartnerProduk
log
=
logging
.
getLogger
(
__name__
)
from
.
import
Vendor
def
proses
(
invoice_det
,
vendor_produk
):
vendor
=
Vendor
(
vendor_produk
,
invoice_det
)
vendor
.
cancel
()
return
invoice_det
.
cancel
[
"result"
]
src/agratek/api/merchant/views/vendor.py
View file @
6fad975
...
@@ -174,6 +174,10 @@ class VendorClass(object):
...
@@ -174,6 +174,10 @@ class VendorClass(object):
self
.
invoice_det
.
notify
=
dict
(
request
=
self
.
request
,
self
.
invoice_det
.
notify
=
dict
(
request
=
self
.
request
,
response
=
self
.
response
,
response
=
self
.
response
,
result
=
self
.
result
)
result
=
self
.
result
)
elif
typ
==
'cancel'
:
self
.
invoice_det
.
cancel
=
dict
(
request
=
self
.
request
,
response
=
self
.
response
,
result
=
self
.
result
)
flush_row
(
self
.
invoice_det
)
flush_row
(
self
.
invoice_det
)
...
...
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