If you would like to write a letter to confirm that you have received a payment, here is a sample template you can use to write a letter acknowledging payment received.
To [Recipient name]
Dear, [Recipient name]
This letter is for the purpose of acknowledging receipt of your payment of [Amount] debited to my bank account on [Date] for [Product/Service]. This covers the outstanding amount owed to [Name of company] and hereby clears your dues. The full payment for order number [Number] has been received.
Your prompt payment of the amount is deeply appreciated. We would like to thank you for your business and hope to do business with you in the future.
Thanking you again for your cooperation.
[Name of company]