use IPN secret instead of API secret

This commit is contained in:
Thomas Steen Rasmussen 2016-05-31 20:50:08 +02:00
parent 65a5da2177
commit 5e8d55d553

View file

@ -427,7 +427,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_SECRET)
sdk = CoinifyCallback(settings.COINIFY_IPN_SECRET)
# make a dict with all HTTP_ headers
headerdict = {}