Merge branch 'yandex_rebiling' into 'dev'

finance email

See merge request !352
master
Andrey 8 years ago
commit e55250a541
  1. 4
      finance/views.py

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

Loading…
Cancel
Save