This IRS page might answer your question
Frequently Asked Questions - 7.4 Hope & Life Time Learning Educational Credits
As I understand it, qualifying expenses are eligible regardless of whether you paid in cash or with a repayable loan.
It's been a few years since I'd had to complete these and FAFSA forms

