Yandex_update

feature/fix_accout_not_found
Andrey 8 years ago
parent d88519d0f7
commit f122227418
  1. 12
      finance/views.py

@ -244,14 +244,14 @@ class YandexCheckView(APIView):
# pay.save()
xml_res = dicttoxml.dicttoxml({
'code': 0,
'shopId': pay.shop_id,
'invoiceId': data['invoiceId'],
'shopId': int(pay.shop_id),
'invoiceId': int(data['invoiceId']),
'orderSumAmount': pay.order_amount,
'performedDatetime': datetime.datetime.now(),
})
logger_yandex.info(xml_res)
return Response(xml_res, status=200)
return HttpResponse(xml_res, content_type='application/xml')
class YandexAvisoView(APIView):
@ -279,14 +279,14 @@ class YandexAvisoView(APIView):
xml_res = dicttoxml.dicttoxml({
'code': 0,
'shopId': pay.shop_id,
'invoiceId': data['invoiceId'],
'shopId':int(pay.shop_id),
'invoiceId': int(data['invoiceId']),
'orderSumAmount': pay.order_amount,
'performedDatetime': datetime.datetime.now(),
})
logger_yandex.info(xml_res)
return Response(xml_res, status=200)
return HttpResponse(xml_res, content_type='application/xml')
class YandexFailView(APIView):

Loading…
Cancel
Save