Laurent 2 years ago
parent 962ef95ae0
commit e7f20a6582
  1. 4
      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(

Loading…
Cancel
Save