Commit 83984dfe authored by Jérome Perrin's avatar Jérome Perrin

payzen_secure_payment: python3 support

parent a7851fa6
...@@ -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