diff --git a/subscriptions/views.py b/subscriptions/views.py index fcaca56..138c634 100644 --- a/subscriptions/views.py +++ b/subscriptions/views.py @@ -29,7 +29,7 @@ def app_store_webhook(request): decoded = request.body.decode('utf-8') # Parse the JSON payload - fulljson = json.loads(data) + fulljson = json.loads(decoded) signedPayload = fulljson['signedPayload'] root_certificates = load_root_certificates()