If you do an OTC sale to an anonymous customer, and then they return the goods and you want to do a refund, the procedure is as follows:
Now do the physical reversal - ie put the item(s) back on the shelf, and give the customer back their money.
Note that the refund created by reversing the payment will have the same payment type as the original payment, and you will need to do the refund the same way.
Thus, if they paid by credit card, you will need to do a credit on their credit card. You should NOT just give them money from the till.