diff --git a/subscriptions/views.py b/subscriptions/views.py index 63d20bf..dfcbfa2 100644 --- a/subscriptions/views.py +++ b/subscriptions/views.py @@ -29,7 +29,7 @@ def app_store_webhook(request): #fulljson = json.loads(data) # signedPayload = fulljson['signedPayload'] - decoded_payload = json.loads(base64.b64decode(data)) + decoded_payload = json.loads(base64.b64decode(decoded)) # Now you can access the decoded data type = decoded_payload.get('notification_type')