From 6021afefc8da7ca62f9b7854338e58668273688a Mon Sep 17 00:00:00 2001 From: kcppdevelopers Date: Thu, 1 Feb 2018 18:16:16 +0530 Subject: [PATCH] Capturing authorizations only using whole values and ignoring decimals, ref #985 --- angelleye-includes/angelleye-utility.php | 1 + 1 file changed, 1 insertion(+) diff --git a/angelleye-includes/angelleye-utility.php b/angelleye-includes/angelleye-utility.php index c12cd1033..e51108b17 100644 --- a/angelleye-includes/angelleye-utility.php +++ b/angelleye-includes/angelleye-utility.php @@ -1507,6 +1507,7 @@ public static function round($price) { * @return type */ public static function number_format($price) { + $price = str_replace(',', '.', $price); $decimals = 2; if (!self::currency_has_decimals(get_woocommerce_currency())) { $decimals = 0;