Just create a Credit Card Credit transaction in QBO.
From the left Dashboard > Select "+ New" to create a new transaction > Vendors > Credit Card Credit. Be sure to select the original expense account under the category, that will offset against the original transaction.
If you're using the Banking bank feed, it should match after this. Select Match, done. That's the recommended workflow in QBO.