SatSale

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

commit ea98e25f4ff14b2deb5a2cf1cb6232ef85f93e3b
parent 82cd4f9fd07ae043921ac497d11539c7cd3a7fd9
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date:   Sat,  6 Mar 2021 19:56:08 +1100

Fix int rounding bug, preventing sub completion-ignore-case orders from confirming

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

diff --git a/gateways/woo_btcpyment.php b/gateways/woo_btcpyment.php @@ -172,7 +172,7 @@ function btcpyment_init_gateway_class() { // once the payment has been confirmed by the python backend. // By confirming it matches the order details (amount * id) we know that // the order has not been tampered with after leaving the php payment gateway. - $order_secret_seed = (int)$order->get_total() * 100.0 * $order->get_id(); + $order_secret_seed = (int)($order->get_total() * 100.0 * $order->get_id()); $order_secret_seed_str = (string)$order_secret_seed; $secret = hash_hmac('sha256', $order_secret_seed, $key);