Added function to edit payment