commit b2dc8a96eb08bea0e55ce89cab0d2a5265201f65
parent 732b064944a2b017df09a9e8c4e14c9e454049d0
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date: Fri, 22 Jan 2021 22:59:03 +1100
rounding money values according to PHP standards
Diffstat:
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 = bytes(int(100*float(payload['amount'])), * int(payload['id']))
+ secret_seed = bytes(int(100*float(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!