diff --git a/angelleye-includes/angelleye-utility.php b/angelleye-includes/angelleye-utility.php index ba1fd2d7d..c86bc441b 100644 --- a/angelleye-includes/angelleye-utility.php +++ b/angelleye-includes/angelleye-utility.php @@ -225,13 +225,13 @@ public function has_authorization_expired($order_id) { $old_wc = version_compare(WC_VERSION, '3.0', '<'); $order = wc_get_order($order_id); $transaction_time = $old_wc ? get_post_meta($order_id, '_trans_date', true) : get_post_meta($order->get_id(), '_trans_date', true); - return floor(( time() - $transaction_time ) / 3600) > 720; + return floor(( time() - strtotime($transaction_time) ) / 3600) > 720; } public function has_authorization_inside_honor_period($transaction_id) { $transaction_post_is = $this->get_post_by_title($transaction_id); $transaction_time = get_post_meta($transaction_post_is, '_trans_date', true); - return floor(( time() - $transaction_time ) / 3600) > 72; + return floor(( time() - strtotime($transaction_time) ) / 3600) > 72; } /** @@ -944,7 +944,7 @@ public function angelleye_paypal_for_woocommerce_order_action_callback($post) { - total_DoCapture; ?> + total_DoCapture .' '. get_woocommerce_currency_symbol() ?> @@ -975,7 +975,7 @@ public function angelleye_paypal_for_woocommerce_order_action_callback($post) { post_title; ?> ID, 'TIMESTAMP', true)); ?> - ID, 'AMT', true)); ?> + ID, 'AMT', true)) .' '. get_woocommerce_currency_symbol(); ?> ID, 'PENDINGREASON', true)); ?> >ID, 'PAYMENTSTATUS', true)); ?> ID, 'payment_action', true)); ?>