@jncr
Along with what Mike said about not using journal entries, but to correct the debits and credits you referred to
expenses, what you pay for, are debits
the payment, check cash cc, is a credit
Accounts payable is used when you get a bill from a vendor and will not pay it until some later date.