|
|
|
|
@ -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): |
|
|
|
|
|