COD getting captured as prepaid under Payment Status

The COD orders are being reflected as ‘Prepaid’ under the Payment Status section for the orders. It is flowing incorrectly to the third party shipping partner as well. Which is major loss, since the delivery of the products will happen as a prepaid.