From daab6c401954769748f8afc8c993f1a6895b8f9b Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Sun, 29 May 2016 19:29:06 +0200 Subject: [PATCH] CoinifyCallback() only needs the secret --- shop/views.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/shop/views.py b/shop/views.py index c5a4a162..0b056c64 100644 --- a/shop/views.py +++ b/shop/views.py @@ -388,10 +388,7 @@ class CoinifyCallbackView(SingleObjectMixin, View): def post(self, request, *args, **kwargs): # Get the signature from the HTTP headers signature = request.META['HTTP_X_COINIFY_CALLBACK_SIGNATURE'] - sdk = CoinifyCallback( - settings.COINIFY_API_KEY, - settings.COINIFY_API_SECRET - ) + sdk = CoinifyCallback(settings.COINIFY_API_SECRET) # make a dict with all HTTP_ headers headerdict = {}