SatSale

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 0979c3600954530ecb26c6aff9db3873e94db17b
parent 47bceb7b3a0ed1c8d7180726d1a1e21553224bc9
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date:   Fri, 22 Jan 2021 22:31:07 +1100

fix hash of int bug

Diffstat:
Mgateways/woo_webhook.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gateways/woo_webhook.py b/gateways/woo_webhook.py @@ -8,7 +8,7 @@ import requests def hook(btcpyment_secret, payload, payment): # Calculate a secret that is required to send back to the # woocommerce gateway, proving we did not modify id nor amount. - secret_seed = payload['amount'] * int(payload['id']) + secret_seed = bytes(payload['amount'] * int(payload['id'])) secret = hmac.new(btcpyment_secret, secret_seed, hashlib.sha256).hexdigest() # The main signature which proves we have paid, and very recently!