If a customer wants to return an item or if you have to correct an incorrect invoice, then you have to refund a withdrawn payment. You can then refund the money to the credit card.
To refund a credit card payment
Create a new sales credit memo, and then fill in the customer to refund.
In the Action Pane, click Apply Entries for the specific customer or enter the information manually.
Post the sales credit memo. The amount is then refunded to the customer credit card.