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 e517c07a
authored
Oct 31, 2019
by
yasir
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
tes nicepay
1 parent
706726ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
src/agratek/api/merchant/views/notify_vendor.py
src/agratek/api/merchant/views/np/notify.py
src/agratek/api/merchant/views/notify_vendor.py
View file @
e517c07
...
@@ -103,8 +103,11 @@ def payment_notify(order):
...
@@ -103,8 +103,11 @@ def payment_notify(order):
tx_id
=
tx_id
tx_id
=
tx_id
))
))
params
=
dict
(
data
=
data
)
params
=
dict
(
data
=
data
)
print
(
'isi payment_notify >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>'
)
print
(
params
)
js
=
get_jsonrpc
(
method
=
"notify"
,
params
=
params
)
js
=
get_jsonrpc
(
method
=
"notify"
,
params
=
params
)
log
.
info
(
"Notify:
%
s
%
s"
%
(
url
,
json
.
dumps
(
js
)))
log
.
info
(
"Notify:
%
s
%
s"
%
(
url
,
json
.
dumps
(
js
)))
try
:
try
:
requests
.
post
(
url
,
data
=
json
.
dumps
(
js
),
timeout
=
20
)
requests
.
post
(
url
,
data
=
json
.
dumps
(
js
),
timeout
=
20
)
...
...
src/agratek/api/merchant/views/np/notify.py
View file @
e517c07
...
@@ -23,7 +23,11 @@ def proses(data):
...
@@ -23,7 +23,11 @@ def proses(data):
# by tatang
# by tatang
if
not
vendor_produk
:
if
not
vendor_produk
:
return
return
print
(
'isi proses notify >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>'
)
print
(
data
)
print
(
'>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>'
)
print
(
invoice_det
)
print
(
'>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>'
)
vendor
=
Vendor
(
vendor_produk
,
invoice_det
)
vendor
=
Vendor
(
vendor_produk
,
invoice_det
)
vendor
.
notify
(
data
)
vendor
.
notify
(
data
)
return
payment_notify
(
invoice_det
)
return
payment_notify
(
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