diff --git a/subscriptions/views.py b/subscriptions/views.py index 8916073..9ce878e 100644 --- a/subscriptions/views.py +++ b/subscriptions/views.py @@ -24,13 +24,13 @@ def test(request): @csrf_exempt def app_store_webhook(request): - data = request.body.decode('utf-8') + decoded = request.body.decode('utf-8') # Parse the JSON payload fulljson = json.loads(data) # signedPayload = fulljson['signedPayload'] try: - data = asn2.parse(fulljson) + data = asn2.parse(decoded) type = data['notificationType'] notification = ASSNotification(