Hello, ftpeters.
Thank you for reaching out to the Community. You can create a Check, so it will show you got deducted in your bank account, and then under check number, input the credit card to know that refund was processed through your CC, or you can add notes on the memo.
Also the account should be under AR to show the customer balance in QuickBooks.
To learn more the steps and process, please refer to this article: Create and record checks in QuickBooks Online.
Additionally, I'm adding this article to further guide you in managing your vendor and customer transactions using QBO: QuickBooks Help Articles. It includes topics about account management, banking, and expenses, to name a few. You can click the + More topics button to view other selections.
Keep me posted if there's anything else you need by commenting below. I'll be around to help you. Take care!