Journal Entry

I would like to know how to transfer money from cash payments to accounts payable.

You cannot “transfer” between a cah account and Accounts Payable, only between two cash accounts. You can post a payment to Accounts Payable by selecting it plus the supplier plus a purchase invoice number (if desired) when recording the payment.