Welcome to Community Louise thanks for posting your query here.
When recording expenses the payment account is the account which was used to make the payment whether this is a Bank Account, Petty Cash or a Savings Account.
Please let us know if this helps or if you need any further help with anything regarding your QuickBooks Online account.