I am creating a WordPress plugin that handles the shipping and delivery for WooCommerce.
I have tried directly setting
WC()->cart->shipping_amount = $amount;,
and also doing
->add_fee( $shippingServiceName, $amount );
in both cases the
shipping_amount on the cart remains at
How do I set the shipping amount?
Read more here: How to programatically set the shipping amount in WooCommerce