To restrict users from editing and deleting payments, please go to settings >> All users/roles >> Roles and permissions >> edit user >> scroll down to payments >> Disable ‘Payment edit’ and ‘Payment delete’ option >> Update role.