Skip to content

Commit

Permalink
Capturing authorizations only using whole values and ignoring decimal…
Browse files Browse the repository at this point in the history
…s, ref #985
  • Loading branch information
kcppdevelopers committed Feb 1, 2018
1 parent d3fbfba commit 6021afe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions angelleye-includes/angelleye-utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6021afe

Please sign in to comment.