You can edit a payment that you recorded manually. To do this you would click on "See Details" in the Payments section to the right of the invoice. This will show you the payment history. Hover your mouse over the payment you recorded and you should see a blue pencil icon appear. Click on this and you'll be able to edit the payment.
If you need to delete a manually recorded payment, you can do so by following the instructions in this article.