forgot the most important bit lol

This commit is contained in:
Thomas Steen Rasmussen 2016-05-17 07:46:36 +02:00
parent c1203db188
commit f62a4dd8a3

View file

@ -23,6 +23,6 @@ def validate_epay_callback(query):
for key, value in query.iteritems(): for key, value in query.iteritems():
if key != 'hash': if key != 'hash':
hashstring += value hashstring += value
hash = hashlib.md5(hashstring).hexdigest() hash = hashlib.md5(hashstring + settings.EPAY_MD5_SECRET).hexdigest()
return hash == query['hash'] return hash == query['hash']