|
|
|
@ -494,13 +494,9 @@ class DemoYandexCheckView(APIView): |
|
|
|
val = i.split('=')[1] |
|
|
|
val = i.split('=')[1] |
|
|
|
data[key] = val |
|
|
|
data[key] = val |
|
|
|
|
|
|
|
|
|
|
|
logger_yandex.info('Начало тестирования checkYandex', exc_info=True, extra={ |
|
|
|
logger_yandex.info('Начало тестирования checkYandex') |
|
|
|
'data': data, |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
except IndexError: |
|
|
|
except IndexError: |
|
|
|
logger_yandex.error("Не предвиденная ошибка проверки тестогого платежа", exc_info=True, extra={ |
|
|
|
logger_yandex.error("Не предвиденная ошибка проверки тестогого платежа") |
|
|
|
"body": request.body |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
return Response(status=204) |
|
|
|
return Response(status=204) |
|
|
|
|
|
|
|
|
|
|
|
now = timezone.now() |
|
|
|
now = timezone.now() |
|
|
|
@ -534,9 +530,7 @@ class DemoYandexAvisoView(APIView): |
|
|
|
val = i.split('=')[1] |
|
|
|
val = i.split('=')[1] |
|
|
|
data[key] = val |
|
|
|
data[key] = val |
|
|
|
|
|
|
|
|
|
|
|
logger_yandex.info('Начало тестирования avisoYandex', exc_info=True, extra={ |
|
|
|
logger_yandex.info('Начало тестирования avisoYandex') |
|
|
|
'data': data, |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
now = timezone.now() |
|
|
|
now = timezone.now() |
|
|
|
if float(data['orderSumAmount']) < 1001: |
|
|
|
if float(data['orderSumAmount']) < 1001: |
|
|
|
xml_res = """<paymentAvisoResponse performedDatetime="%s" code="0" invoiceId="%s" shopId="%s"/> |
|
|
|
xml_res = """<paymentAvisoResponse performedDatetime="%s" code="0" invoiceId="%s" shopId="%s"/> |
|
|
|
|