Inventory Update after changing my order payment status

Hi, I need that my inventory is updated when i change my payment status to fulfilled, this is because I have many customers that make an order in cash and dont finish the order or dont go to the store to pay, so my inventory is out of stock when it doesnt. I need that the inventory is updated when I update the payment to fulfilled.