|
|
|
|
@ -225,15 +225,15 @@ class YandexCheckView(APIView): |
|
|
|
|
logger_yandex.error("Payment with id=%s have status %s" % (data['orderNumber'], pay.status)) |
|
|
|
|
return Response(status=204) |
|
|
|
|
|
|
|
|
|
if not pay.shop_id == data['shopId']: |
|
|
|
|
if not pay.shop_id == int(data['shopId']): |
|
|
|
|
logger_yandex.error("ShopId=%s not match" % (data['shopId'],)) |
|
|
|
|
return Response(status=204) |
|
|
|
|
|
|
|
|
|
if not pay.scid == data['scid']: |
|
|
|
|
if not pay.scid == int(data['scid']): |
|
|
|
|
logger_yandex.error("scid=%s not match" % (data['scid'],)) |
|
|
|
|
return Response(status=204) |
|
|
|
|
|
|
|
|
|
if not pay.order_amount == data['orderSumAmount']: |
|
|
|
|
if not pay.order_amount == int(data['orderSumAmount']): |
|
|
|
|
logger_yandex.error("Expected amount is %s received amount is %s" |
|
|
|
|
% (pay.order_amount, data['orderSumAmount'])) |
|
|
|
|
return Response(status=204) |
|
|
|
|
|