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 488260f0
authored
Jul 31, 2019
by
Solo Group
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
auto-push
1 parent
eb16c573
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
17 deletions
src/agratek/api/merchant/views/vendor.py
src/agratek/api/merchant/views/vendor.py
View file @
488260f
...
...
@@ -208,8 +208,9 @@ def proses_odeo(data):
def
callback_merchant
(
order
):
# Callback to merchant
customer
=
order
.
customer
invoice
=
order
.
invoice
customer
=
invoice
.
customer
if
customer
and
customer
.
website
:
url
=
customer
.
website
users
=
customer
.
users
...
...
@@ -239,22 +240,6 @@ def callback_merchant(order):
requests
.
post
(
url
,
data
=
data
,
timeout
=
15
)
"""
{
"jsonrpc": "2.0",
"id": 1,
"params": {
"data": [{
"invoice_no": "15678",
"signature":
"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
}
]
}
}
"""
@view_config
(
route_name
=
'api-vendor-notify'
,
renderer
=
'json'
)
def
api_vendor_notify
(
request
):
vendor_nm
=
request
.
matchdict
[
'name'
]
...
...
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