Returning a payment to a customer

Returning a payment to a customer

How can I write a check to a customer??
He made the first payment to start the job. It went to the bank.  3 days later he decided not to do the job. I have to write a check to return his money.
How can I write a check for a customer using account receivable??
thanks!