Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eeb2e5d

Browse files
committed
fixing 2/3 incompatibliites
1 parent e134a1a commit eeb2e5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quickbooks/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def validate_webhook_signature(self, request_body, signature, verifier_token=Non
115115
to_bytes(request_body),
116116
hashlib.sha256
117117
).hexdigest()
118-
decoded_hex_signature = base64.b64decode(signature).encode('hex')
118+
decoded_hex_signature = str(base64.b64decode(signature)).encode('hex')
119119
return hmac_verifier_token_hash == decoded_hex_signature
120120

121121

0 commit comments

Comments
 (0)