CoinifyCallback() only needs the secret

This commit is contained in:
Thomas Steen Rasmussen 2016-05-29 19:29:06 +02:00
parent 3c8a1427da
commit daab6c4019

View file

@ -388,10 +388,7 @@ class CoinifyCallbackView(SingleObjectMixin, View):
def post(self, request, *args, **kwargs): def post(self, request, *args, **kwargs):
# Get the signature from the HTTP headers # Get the signature from the HTTP headers
signature = request.META['HTTP_X_COINIFY_CALLBACK_SIGNATURE'] signature = request.META['HTTP_X_COINIFY_CALLBACK_SIGNATURE']
sdk = CoinifyCallback( sdk = CoinifyCallback(settings.COINIFY_API_SECRET)
settings.COINIFY_API_KEY,
settings.COINIFY_API_SECRET
)
# make a dict with all HTTP_ headers # make a dict with all HTTP_ headers
headerdict = {} headerdict = {}