def post(self, request): serializer = SubscribeSerializer(data=request.data, many=False) serializer.is_valid(raise_exception=True) token = serializer.validated_data['params']['token'] result = self.receipts_create(token, serializer.validated_data) return Response(result)
def post(self, request): serializer = SubscribeSerializer(data=request.data, many=False) serializer.is_valid(raise_exception=True) result = self.card_verify(serializer.validated_data) return Response(result)