finance email

remotes/origin/yandex_rebiling
Andrey 8 years ago
parent 3a38c745a1
commit 5457fd8288
  1. 4
      finance/views.py

@ -526,10 +526,10 @@ class DemoYandexAvisoView(APIView):
now = timezone.now()
if float(data['orderSumAmount']) < 1001:
xml_res = """<checkOrderResponse performedDatetime="%s" code="0" invoiceId="%s" shopId="%s"/>
xml_res = """<paymentAvisoResponse performedDatetime="%s" code="0" invoiceId="%s" shopId="%s"/>
""" % (now.isoformat(), str(data['invoiceId']), str(data['shopId']))
else:
xml_res = """<checkOrderResponse performedDatetime="%s" code="100" invoiceId="%s" shopId="%s"
xml_res = """<paymentAvisoResponse performedDatetime="%s" code="100" invoiceId="%s" shopId="%s"
message="Нам не позволяет совесть принять от вас более 1000 рублей"/
>""" % (now.isoformat(), str(data['invoiceId']), str(data['shopId']))
logger_yandex.warning("Ошибка подтверждения тестогого платежа (скорее всего так было задуманно)", xml_res)

Loading…
Cancel
Save