|
|
|
|
@ -240,8 +240,8 @@ class YandexCheckView(APIView): |
|
|
|
|
# pay.invoice_id = int(data['invoiceId']) |
|
|
|
|
# pay.save() |
|
|
|
|
|
|
|
|
|
xml_res = """<checkOrderResponse performedDatetime="%s" code="0" invoiceId="%s" shopId="%s" orderSumAmount="%s"/> |
|
|
|
|
""" % (datetime.datetime.now(), str(data['invoiceId']), str(pay.shop_id), str(pay.order_amount)) |
|
|
|
|
xml_res = """<checkOrderResponse performedDatetime="%s" code="0" invoiceId="%s" shopId="%s"/> |
|
|
|
|
""" % (datetime.datetime.now(), str(data['invoiceId']), str(pay.shop_id)) |
|
|
|
|
|
|
|
|
|
logger_yandex.info(xml_res) |
|
|
|
|
|
|
|
|
|
@ -279,8 +279,8 @@ class YandexAvisoView(APIView): |
|
|
|
|
'performedDatetime': datetime.datetime.now(), |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
"""<paymentAvisoResponse performedDatetime="%s" code="0" invoiceId="%s" shopId="%s" orderSumAmount="%s"/> |
|
|
|
|
""" % (datetime.datetime.now(), str(data['invoiceId']), str(pay.shop_id), str(pay.order_amount)) |
|
|
|
|
"""<paymentAvisoResponse performedDatetime="%s" code="0" invoiceId="%s" shopId="%s"/> |
|
|
|
|
""" % (datetime.datetime.now(), str(data['invoiceId']), str(pay.shop_id)) |
|
|
|
|
|
|
|
|
|
logger_yandex.info(xml_res) |
|
|
|
|
|
|
|
|
|
|