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 f4aee097
authored
Sep 15, 2019
by
Tatang
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
payment notify
1 parent
22368f54
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
src/agratek/api/merchant/views/notify_vendor.py
src/agratek/api/merchant/views/notify_vendor.py
View file @
f4aee09
...
...
@@ -82,12 +82,13 @@ def payment_notify(order):
typ
=
"PAYMENT"
key
=
order
.
cust_inv_no
+
users
.
user_name
+
users
.
api_key
+
typ
signature
=
sha256
(
key
)
data
=
dict
(
data
=
order
.
notify
[
"result"
]
data
.
update
(
dict
(
invoice_no
=
order
.
cust_inv_no
,
signature
=
signature
,
type
=
typ
)
data
.
update
(
order
.
notify
[
"result"
])
)
)
#
data.update(order.notify["result"])
js
=
get_jsonrpc
(
method
=
"notify"
,
params
=
dict
(
data
=
data
))
log
.
info
(
"Notify:
%
s
%
s"
%
(
url
,
js
))
try
:
...
...
@@ -96,10 +97,6 @@ def payment_notify(order):
pass
return
def
proses_np
(
data
):
# todo:
pass
@view_config
(
route_name
=
'api-vendor-notify'
,
renderer
=
'json'
)
def
api_vendor_notify
(
request
):
...
...
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