QuickBooks Online treats Card Account transactions as cash transactions for cash-basis statements.
The word "cash" is not meant literally. It also covers payments by cheque, card, barter, etc. Treating card charges as cash-basis transactions is the conservative approach that fits the majority of our customers.
However, if you prefer, you can treat your card account like Accounts Payable/Trade and Other Payable and not recognise the expenses until you pay the card bill. In this method, you enter a bill when you receive your card statement, entering transactions as Accounts Payable/Trade and Other Payable, and then use the Pay Bills page when you're ready to make the payment.
You can also pay off your Card account when you receive your statement from the Cheques or Expenses page.
It's important to discuss these approaches with your accountant before deciding on the method that best fits your situation.