I know there are many ways that a refund from a supplier can be recorded, and given that this is a refund from your supplier onto your credit card, it makes sense to want to double check those steps. I can show you how it's done in QuickBooks Online.
QuickBooks Online has an easy-to-use, built-in feature for recording refunds from your suppliers to your credit card. It's called Credit card credit, and is found in the +New button in the left menu. This is the article that can walk you through it: How can I record a cash back to my credit card account? Rest assured that although the title mentions cash back specifically, the steps also help with recording just a regular refund to your credit card.
Give those a shot. So you can see how QuickBooks Online handles other refunds, here are a couple more articles on the topic.