We have provided setting for that when the merchant accepts the refund request then a button would show under plugin -> refund setting with the name of “MANAGE STOCK” as merchant clicks on this button, the returned products are returned to the inventory successfully.