Skip to content

Commit

Permalink
Fix double encode issue
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelpw committed Oct 8, 2017
1 parent 05bb9c9 commit 5b24091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paymentwall/pingback.py
Original file line number Diff line number Diff line change
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 5b24091

Please sign in to comment.