Commit 488260f0 by Solo Group

auto-push

1 parent eb16c573
...@@ -208,8 +208,9 @@ def proses_odeo(data): ...@@ -208,8 +208,9 @@ def proses_odeo(data):
def callback_merchant(order): def callback_merchant(order):
# Callback to merchant # Callback to merchant
customer = order.customer
invoice = order.invoice invoice = order.invoice
customer = invoice.customer
if customer and customer.website: if customer and customer.website:
url = customer.website url = customer.website
users = customer.users users = customer.users
...@@ -239,22 +240,6 @@ def callback_merchant(order): ...@@ -239,22 +240,6 @@ def callback_merchant(order):
requests.post(url, data=data, timeout=15) 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') @view_config(route_name='api-vendor-notify', renderer='json')
def api_vendor_notify(request): def api_vendor_notify(request):
vendor_nm = request.matchdict['name'] vendor_nm = request.matchdict['name']
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!