Commit f489b972 authored by Jérome Perrin's avatar Jérome Perrin Committed by Arnaud Fontaine

payzen_secure_payment: python3 support

parent 30cf21ab
......@@ -141,7 +141,7 @@ class PayzenService(XMLObject, PayzenREST):
v = str(v)
signature += v + '+'
signature += self.getServicePassword()
return hashlib.sha1(signature).hexdigest()
return hashlib.sha1(signature.encode('utf-8')).hexdigest()
def _getFieldList(self, payzen_dict):
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