diff --git a/classes/wc-gateway-paypal-express-angelleye.php b/classes/wc-gateway-paypal-express-angelleye.php index 96731d52f..01d992899 100644 --- a/classes/wc-gateway-paypal-express-angelleye.php +++ b/classes/wc-gateway-paypal-express-angelleye.php @@ -2337,7 +2337,7 @@ public function handle_wc_api() { $this->angelleye_check_cart_items(); $validate_data = WC()->session->get( 'validate_data' ); - WC()->cart->calculate_totals(); + if( !empty($validate_data) ) { $order_id = WC()->checkout()->create_order($validate_data); } else { @@ -2399,8 +2399,6 @@ public function handle_wc_api() { $validate_data = WC()->session->get( 'validate_data' ); - WC()->cart->calculate_totals(); - if( !empty($validate_data) ) { $order_id = WC()->checkout()->create_order($validate_data); } else {