|
|
|
|
@ -241,12 +241,12 @@ class YandexCheckView(APIView): |
|
|
|
|
# TODO Нужно решение |
|
|
|
|
# pay.invoice_id = int(data['invoiceId']) |
|
|
|
|
# pay.save() |
|
|
|
|
logger_yandex.info('Send success pay with invoice_id(yandex) %s' % pay.invoice_id) |
|
|
|
|
logger_yandex.info('Send success pay with invoice_id(yandex) %s' % str(data['invoiceId'])) |
|
|
|
|
|
|
|
|
|
return Response({ |
|
|
|
|
'code': 0, |
|
|
|
|
'shopId': pay.shop_id, |
|
|
|
|
'invoiceId': pay.invoice_id, |
|
|
|
|
'invoiceId': data['invoiceId'], |
|
|
|
|
'orderSumAmount': pay.order_amount, |
|
|
|
|
}, status=200) |
|
|
|
|
|
|
|
|
|
@ -274,7 +274,7 @@ class YandexAvisoView(APIView): |
|
|
|
|
pay.status = Payment.STATUS.SUCCESS |
|
|
|
|
pay.save() |
|
|
|
|
|
|
|
|
|
logger_yandex.info('Finish success pay with invoice_id(yandex) %s' % pay.invoice_id) |
|
|
|
|
logger_yandex.info('Finish success pay with invoice_id(yandex) %s' % str(data['invoiceId'])) |
|
|
|
|
|
|
|
|
|
return Response({ |
|
|
|
|
'performedDatetime': datetime.datetime.now(), |
|
|
|
|
|