Commit 56cc8e4e authored by Jérome Perrin's avatar Jérome Perrin

payzen_secure_payment: python3 support

parent e16bc54c
...@@ -141,7 +141,7 @@ class PayzenService(XMLObject, PayzenREST): ...@@ -141,7 +141,7 @@ class PayzenService(XMLObject, PayzenREST):
v = str(v) v = str(v)
signature += v + '+' signature += v + '+'
signature += self.getServicePassword() signature += self.getServicePassword()
return hashlib.sha1(signature).hexdigest() return hashlib.sha1(signature.encode('utf-8')).hexdigest()
def _getFieldList(self, payzen_dict): def _getFieldList(self, payzen_dict):
payzen_dict.update( payzen_dict.update(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment