Skip to content

Commit

Permalink
Merge pull request #19 from michaelpw/patch-1
Browse files Browse the repository at this point in the history
Fix double encode issue
  • Loading branch information
LiangNex committed Oct 9, 2017
2 parents 05bb9c9 + 5b24091 commit 05aa765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paymentwall/pingback.py
Expand Up @@ -189,4 +189,4 @@ def calculate_signature(self, params, secret, version):

base_string += secret

return self.hash(base_string.encode('utf-8'), 'sha256') if int(version) == self.SIGNATURE_VERSION_3 else self.hash(base_string.encode('utf-8'), 'md5')
return self.hash(base_string, 'sha256') if int(version) == self.SIGNATURE_VERSION_3 else self.hash(base_string, 'md5')

0 comments on commit 05aa765

Please sign in to comment.