diff --git a/angelleye-includes/angelleye-utility.php b/angelleye-includes/angelleye-utility.php index 266336bb2..d0536f8b5 100644 --- a/angelleye-includes/angelleye-utility.php +++ b/angelleye-includes/angelleye-utility.php @@ -395,7 +395,7 @@ public function pfw_do_capture($order, $transaction_id = null, $capture_total = if( !empty($_POST['_regular_price'])) { $AMT = self::number_format(wc_clean( wp_unslash( $_POST['_regular_price'] ) ) ); } elseif ($capture_total == null) { - $AMT = $this->get_amount_by_transaction_id($transaction_id); + $AMT = self::number_format($order->get_total()); } else { $AMT = $capture_total; }