Laurent 2 years ago
parent 962ef95ae0
commit e7f20a6582
  1. 4
      subscriptions/views.py

@ -24,13 +24,13 @@ def test(request):
@csrf_exempt @csrf_exempt
def app_store_webhook(request): def app_store_webhook(request):
data = request.body.decode('utf-8') decoded = request.body.decode('utf-8')
# Parse the JSON payload # Parse the JSON payload
fulljson = json.loads(data) fulljson = json.loads(data)
# signedPayload = fulljson['signedPayload'] # signedPayload = fulljson['signedPayload']
try: try:
data = asn2.parse(fulljson) data = asn2.parse(decoded)
type = data['notificationType'] type = data['notificationType']
notification = ASSNotification( notification = ASSNotification(

Loading…
Cancel
Save