error in making a payment to the credit card

Payment was made to the cc, but not through chargeoff.  An Ap bill was created and instead of posting to the cc account on the COA, they posted to Ap.  Tried to correct through a journal entry but not getting the correct posting to the cc ledger.