There is a possibility that your customer disputed the charge, that's why it's refunded. A Chargeback is when a transaction you've processed conveys a dispute, and the money goes back to the payer. QuickBooks Online works hard to investigate chargebacks and to assist our merchants in providing the correct information for any dispute.
All remedies to a chargeback must comply with the Card Association Rules. You can also check this article to know more about How Intuit is backing you with chargebacks.