To restrict users from editing and deleting payments, please follow the below steps.
Step 1: Click on invite user.
Step 2: Select user Roles and permissions >> Click on more option Infront of the user >> Click on edit.
Step 3: Go to payments and Banks >> Click on drop down button >> Remove the access for delete payment >> Click on edit role.