diff --git a/subscriptions/views.py b/subscriptions/views.py index c2eda34..5ae10f5 100644 --- a/subscriptions/views.py +++ b/subscriptions/views.py @@ -26,18 +26,18 @@ def app_store_webhook(request): signedPayload = fulljson['signedPayload'] - KEY_FILE = settings.ASS_KEY_FILE + #KEY_FILE = settings.ASS_KEY_FILE - with open(KEY_FILE,'r') as key_file: - key = ''.join(key_file.readlines()) + #with open(KEY_FILE,'r') as key_file: + # key = ''.join(key_file.readlines()) - decodedPayload = jwt.decode(signedPayload, key, algorithms=['ES256']) + #decodedPayload = jwt.decode(signedPayload, key, algorithms=['ES256']) #print('hell yeah!' + str(key)) #logger.debug('test getLogger' + str(key)) notification = ASSNotification( - content=decodedPayload, + content=signedPayload, ) notification.save()